:root {
    --neon-blue: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-green: #00ff8f;
    --dark-bg: #050510;
    --darker-bg: #030308;
    --glass-bg: rgba(10, 10, 30, 0.5);
    --card-bg: rgba(15, 15, 40, 0.7);
}



body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f1419 50%, #0a0a0f 100%);
    
    color: #e0e0e0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.7);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 5px rgba(157, 0, 255, 0.7);
}

.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 143, 0.7);
}

.neon-border {
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, rgba(0,243,255,0.1), rgba(157,0,255,0.1), rgba(0,255,143,0.1));
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple), var(--neon-green));
    opacity: 0.7;
    z-index: -1;
}

.timeline-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    z-index: 2;
}

.project-card {
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* .skill-tag {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
} */

.terminal {
    background-color: #151520;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: #d0d0d0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    margin-bottom: 10px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-close {
    background-color: #ff5f56;
}

.terminal-minimize {
    background-color: #ffbd2e;
}

.terminal-expand {
    background-color: #27c93f;
}

.terminal-body {
    line-height: 1.6;
    position: relative;
}

.terminal-command {
    color: var(--neon-green);
}

.terminal-cursor {
    animation: blink 1s infinite;
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--neon-blue);
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.reveal-text {
    position: relative;
    display: inline-block;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--dark-bg);
    animation: reveal 2s ease forwards;
}

@keyframes reveal {
    0% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.highlight:hover::before {
    transform: scaleX(1);
}

.mouse-follow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,243,255,0.4) 0%, rgba(0,243,255,0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.6;
}

/* Experience timeline styles */
.experience-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-blue));
    opacity: 0.7;
    z-index: -1;
}

.experience-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    z-index: 2;
}

/* Testimonial styles */
.testimonial-card {
    background: rgba(15, 15, 40, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    opacity: 0.2;
    font-family: 'Georgia', serif;
}

.star-rating {
    color: var(--neon-green);
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background-color: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--neon-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line, .experience-line {
        left: 25px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Animation for the 3D scene container */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.scene-container {
    animation: pulse 3s infinite;
}

/* Neural network visualization styles */
.neural-network {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(5, 5, 16, 0.5);
    overflow: hidden;
}

.neuron {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.synapse {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform-origin: left center;
    z-index: -1;
}

/* Progress bar styles */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-barz {
    height: 100%;
    background-color: #00bfff;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skewed section dividers */
.skewed-top {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.skewed-top:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--darker-bg);
    transform: skewY(-3deg);
    transform-origin: top right;
}

.skewed-bottom {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.skewed-bottom:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--darker-bg);
    transform: skewY(3deg);
    transform-origin: bottom left;
}

/* Company logo styles */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

/* Workflow Card States */
#automation-workflows-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

/* .workflow-video {
    width: 100%;
    max-height: 350px;
    border-radius: 14px;
    object-fit: cover;
    background: #000;
} */
.workflow-video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(99, 102, 241, 0.25);
    transition: all 0.35s ease;
}

/* Hover effect for premium feel */
.workflow-video:hover {
    transform: scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(168, 85, 247, 0.25);
    border-color: rgba(99, 102, 241, 0.45);
}

/* Remove default controls' ugly background in some browsers */
.workflow-video::-webkit-media-controls-panel {
    background: rgba(17, 24, 39, 0.7) !important;
}

.workflow-video::-webkit-media-controls-play-button,
.workflow-video::-webkit-media-controls-timeline,
.workflow-video::-webkit-media-controls-volume-slider {
    filter: brightness(1.2);
}

.video-placeholder {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    border: 1px dashed rgba(255,255,255,0.15);
    
}

.workflow-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.workflow-card.expanded {
    grid-column: 1 / -1;
    transform: none !important;
}

.workflow-card .card-header {
    cursor: pointer;
    user-select: none;
}

/* Tree View Container */
.workflow-tree-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
    margin-top: 0;
}

.workflow-card.expanded .workflow-tree-container {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* Tree Visualization */
.tree-view {
    position: relative;
    padding: 2rem;
    background: rgba(5, 5, 16, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    font-family: 'JetBrains Mono', monospace;
}

/* Tree Node */
.tree-node {
    position: relative;
    margin: 1rem 0;
    padding-left: 2rem;
}

.tree-node.root {
    padding-left: 0;
}

/* Node Content */
.node-content {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 15, 40, 0.8);
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.node-content:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4),
                0 0 40px rgba(0, 243, 255, 0.2);
    transform: translateX(5px);
}

.node-content.root {
    border-color: var(--neon-purple);
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2), rgba(0, 243, 255, 0.2));
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
}

.node-content.collapsed {
    opacity: 0.7;
}

/* Node Icon */
.node-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--neon-blue);
}

.node-content.root .node-icon {
    color: var(--neon-purple);
}

/* Expand/Collapse Icon */
.toggle-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--neon-green);
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

/* Tree Lines */
.tree-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    opacity: 0.6;
}

.tree-node.root::before {
    display: none;
}

.tree-node::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    opacity: 0.4;
}

.tree-node:last-child::after {
    height: 50%;
}

.tree-node.root::after {
    display: none;
}

/* Child Nodes Container */
.tree-children {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    margin-left: 1rem;
}

.tree-children.expanded {
    max-height: 1500px;
    opacity: 1;
}

/* Node Details (Description, Steps) */
.node-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 0;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--neon-green);
}

.node-details.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.node-details .detail-label {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.node-details .detail-content {
    color: #d0d0d0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.node-details ul {
    list-style: none;
    padding-left: 0;
}

.node-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.node-details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-weight: bold;
}

/* Output Panel */
.output-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(5, 5, 16, 0.8);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 143, 0.2);
}

.output-panel-title {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.output-panel-title i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.output-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 143, 0.3);
    color: #e0e0e0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-x: auto;
}

.output-content code {
    color: var(--neon-blue);
}

/* Expand Button */
.expand-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
}

.expand-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

.expand-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.workflow-card.expanded .expand-btn i {
    transform: rotate(180deg);
}

/* Animation Classes */
@keyframes treeNodeAppear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tree-node {
    animation: treeNodeAppear 0.4s ease forwards;
}

.tree-node:nth-child(1) { animation-delay: 0.1s; }
.tree-node:nth-child(2) { animation-delay: 0.2s; }
.tree-node:nth-child(3) { animation-delay: 0.3s; }
.tree-node:nth-child(4) { animation-delay: 0.4s; }
.tree-node:nth-child(5) { animation-delay: 0.5s; }

/* Pulse animation for active nodes */
@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 243, 255, 0.6),
                    0 0 40px rgba(157, 0, 255, 0.3);
    }
}

.node-content:hover {
    animation: nodePulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tree-view {
        padding: 1rem;
    }
    
    .tree-node {
        padding-left: 1.5rem;
    }
    
    .node-content {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .node-details {
        margin-left: 1rem;
        padding-left: 1rem;
    }
    
    .output-panel {
        padding: 1rem;
    }
}


/* Description Button */
.description-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a78bfa;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.description-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.description-btn i {
    font-size: 16px;
}

/* Glassmorphism Description Box */

.glass-description-box {
    position: fixed; /* FULL SCREEN MODAL */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;       /* allows long descriptions */
    overflow-y: auto;       /* scroll inside box */
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(99, 102, 241, 0.3);
    z-index: 9999;          /* always on top */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.glass-description-box::-webkit-scrollbar {
    width: 10px;
}

.glass-description-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.glass-description-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
    border: 2px solid rgba(17, 24, 39, 0.7);
}

.glass-description-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #818cf8, #c084fc);
}

.glass-description-box.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.glass-description-content {
    position: relative;
    z-index: 1;
}

.glass-description-content h4 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-description-content h4 i {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.glass-description-content p {
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

/* Close Button */
.close-description-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-description-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-description-box {
        width: 95%;
        padding: 20px;
    }
    
    .glass-description-content h4 {
        font-size: 18px;
    }
    
    .glass-description-content p {
        font-size: 14px;
    }
}
