/* Bank Leumi Technical Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Bank-themed gradient - professional blue tones */
.bank-gradient {
    background: linear-gradient(135deg, #002244 0%, #004488 50%, #0066aa 100%);
    position: relative;
    overflow: hidden;
}

.bank-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: slideGrid 30s linear infinite;
}

@keyframes slideGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Glass morphism cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 68, 136, 0.3);
    border-color: rgba(0, 102, 170, 0.3);
}

/* Project cards */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 102, 170, 0.3);
}

/* OOP cards */
.oop-card {
    background: rgba(0, 34, 68, 0.3);
    border: 1px solid rgba(0, 68, 136, 0.3);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.oop-card:hover {
    background: rgba(0, 34, 68, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 68, 136, 0.2);
}

/* Code blocks */
.code-block {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e0e0e0;
    border: 1px solid rgba(0, 68, 136, 0.2);
}

.code-block code {
    color: #e0e0e0;
}

/* Skill tags with level indicators */
.skill-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.2), rgba(0, 68, 136, 0.2));
    border: 1px solid rgba(0, 68, 136, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 68, 136, 0.3);
}

/* Skill level indicators */
.skill-tag::after {
    content: attr(data-display-level);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1a1a1a;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8) translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid;
    z-index: 10;
}

.skill-tag[data-level="expert"]:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.3));
    border-color: rgba(34, 197, 94, 0.6);
}

.skill-tag[data-level="expert"]:hover::after {
    content: "Expert";
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.skill-tag[data-level="advanced"]:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    border-color: rgba(59, 130, 246, 0.6);
}

.skill-tag[data-level="advanced"]:hover::after {
    content: "Advanced";
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Skill matrix */
.skill-matrix {
    space-y: 16px;
}

.skill-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-name {
    min-width: 180px;
    font-weight: 500;
    color: #e0e0e0;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #004488, #0066aa);
    border-radius: 4px;
    transition: width 1.5s ease;
    animation: skillGlow 2s ease infinite;
}

@keyframes skillGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 102, 170, 0.5); }
    50% { box-shadow: 0 0 15px rgba(0, 102, 170, 0.8); }
}

.skill-years {
    min-width: 80px;
    text-align: right;
    font-size: 13px;
    color: #888;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(180deg, #004488 0%, transparent 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #004488;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 68, 136, 0.5);
}

.timeline-dot.current {
    background: #0066aa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 102, 170, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(0, 102, 170, 0.8);
    }
}

/* CTA Button */
.cta-button {
    position: relative;
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #004488 0%, #0066aa 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 68, 136, 0.4);
}

/* Secondary button */
.secondary-button {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid rgba(0, 102, 170, 0.5);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(0, 68, 136, 0.2);
    border-color: rgba(0, 102, 170, 0.8);
}

/* Contact links */
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Gradient section */
.gradient-section {
    background: linear-gradient(to bottom, transparent, rgba(0, 34, 68, 0.2), transparent);
}

/* Section reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Tech stack section */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -6px;
        width: 12px;
        height: 12px;
    }

    .skill-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-name {
        min-width: 100%;
        margin-bottom: 8px;
    }

    .skill-bar {
        width: 100%;
    }

    .skill-years {
        min-width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .cta-button, .secondary-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .code-block {
        font-size: 11px;
    }
}

/* Expandable card and architecture button */
.expandable-card {
    position: relative;
    transition: all 0.3s ease;
}

.expand-architecture-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 68, 136, 0.3), rgba(0, 102, 170, 0.3));
    border: 1px solid rgba(0, 102, 170, 0.5);
    border-radius: 20px;
    color: #4a90e2;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expand-architecture-btn:hover {
    background: linear-gradient(135deg, rgba(0, 68, 136, 0.5), rgba(0, 102, 170, 0.5));
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 102, 170, 0.3);
}

.expand-architecture-btn i {
    font-size: 14px;
}

/* Architecture Modal */
.architecture-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    perspective: 1000px;
}

.architecture-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.6s ease;
    cursor: pointer;
}

.architecture-modal.active .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 170, 0.3);
    border-radius: 24px;
    padding: 40px;
    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0) rotateY(180deg);
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform-style: preserve-3d;
}

.architecture-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    color: white;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Architecture sections */
.architecture-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 102, 170, 0.2);
}

.architecture-section:last-child {
    border-bottom: none;
}

.architecture-section .glass-card {
    background: rgba(0, 68, 136, 0.1);
    padding: 20px;
    margin-bottom: 15px;
}

/* Pipeline stages */
.pipeline-stage {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 68, 136, 0.3), rgba(0, 102, 170, 0.3));
    border: 1px solid rgba(0, 102, 170, 0.5);
    border-radius: 20px;
    font-weight: 500;
}

/* Metric cards */
.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

/* Tech stack grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(0, 68, 136, 0.1);
    border-radius: 12px;
}

.tech-stack-grid > div {
    color: #e0e0e0;
}

.tech-stack-grid strong {
    color: #4a90e2;
    display: block;
    margin-bottom: 5px;
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 170, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 170, 0.7);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95vh;
        padding: 20px;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .architecture-section h3 {
        font-size: 1.2rem;
    }
}