/* Depibey OS v14.0 - Additional Styles & Utilities */

/* UTILITIES */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.slide-in-right {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* DRAG & DROP */
.layer-item.dragging {
    opacity: 0.5;
    border: 2px dashed var(--ps-accent);
}

.layer-item.drag-over {
    border-top: 3px solid var(--ps-accent);
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--ps-bg-medium);
    color: var(--ps-text-bright);
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid var(--ps-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease;
}

.toast.error {
    border-left-color: #ff4444;
}

.toast.success {
    border-left-color: #00cc66;
}

.toast.warning {
    border-left-color: #ffaa00;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CONTEXT MENU */
.context-menu {
    position: fixed;
    background: var(--ps-bg-medium);
    border: 1px solid var(--ps-border);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
    min-width: 180px;
    z-index: 1500;
    display: none;
}

.context-menu.active {
    display: block;
}

.context-menu-item {
    padding: 8px 15px;
    font-size: 13px;
    color: var(--ps-text-bright);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: var(--ps-hover);
}

.context-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--ps-text);
}

.context-menu-separator {
    height: 1px;
    background: var(--ps-border);
    margin: 5px 0;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1800;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--ps-bg-medium);
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--ps-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    color: var(--ps-text-bright);
    font-weight: 600;
}

.modal-close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--ps-hover);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--ps-text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--ps-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--ps-accent);
    color: white;
}

.btn-primary:hover {
    background: #1e7ae6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 140, 255, 0.3);
}

.btn-secondary {
    background: var(--ps-bg-light);
    color: var(--ps-text-bright);
}

.btn-secondary:hover {
    background: var(--ps-hover);
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-danger:hover {
    background: #cc0000;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--ps-text-bright);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    background: var(--ps-bg-dark);
    border: 1px solid var(--ps-border);
    border-radius: 4px;
    color: var(--ps-text-bright);
    font-size: 13px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--ps-accent);
}

.form-input::placeholder {
    color: var(--ps-text);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* LOADING SPINNER */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ps-bg-light);
    border-top: 3px solid var(--ps-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ps-text);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 18px;
    color: var(--ps-text-bright);
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 14px;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-blue {
    background: rgba(44, 140, 255, 0.2);
    color: var(--ps-accent);
}

.badge-green {
    background: rgba(0, 204, 102, 0.2);
    color: #00cc66;
}

.badge-red {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

/* LAZY LOAD */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* PRINT */
@media print {
    .ps-menubar,
    .ps-toolbar,
    .ps-panels,
    .lightbox {
        display: none !important;
    }
}

/* ===================================
   ENHANCED FEATURES v14.1
   =================================== */

/* PARTICLES BACKGROUND */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ps-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-10px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

/* INTRO STATS (Animated Counters) */
.intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ps-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 140, 255, 0.2);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--ps-accent);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 13px;
    color: var(--ps-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FLOATING SOCIAL BUTTONS */
.social-float {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    animation: slideInRightSocial 0.6s ease-out 0.5s both;
}

@keyframes slideInRightSocial {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ps-bg-medium);
    border: 1px solid var(--ps-border);
    border-radius: 50%;
    color: var(--ps-text-bright);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.social-btn::before {
    content: attr(title);
    position: absolute;
    right: 65px;
    background: var(--ps-bg-dark);
    color: var(--ps-text-bright);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border: 1px solid var(--ps-border);
}

.social-btn:hover::before {
    opacity: 1;
    right: 70px;
}

.social-btn svg,
.social-btn i {
    width: 24px;
    height: 24px;
}

.social-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(44, 140, 255, 0.4);
}

.social-btn.behance:hover {
    background: #1769ff;
    border-color: #1769ff;
    color: white;
}

.social-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.social-btn.phone:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* SCROLL TO TOP BUTTON */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ps-accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(44, 140, 255, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(44, 140, 255, 0.6);
}

.scroll-top i {
    width: 24px;
    height: 24px;
}

/* TYPING ANIMATION */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--ps-accent);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ENHANCED INTRO ANIMATIONS */
.intro-logo {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.intro-text {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 2;
    min-height: 30px;
}

.intro-version {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 2;
}

.intro-stats {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PROJECT VIEW ANIMATIONS */
.project-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.project-image.reveal {
    opacity: 1;
    transform: translateY(0);
}

.project-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image img {
    transition: transform 0.3s ease-out;
}

.project-image:hover img {
    transform: scale(1.05);
}

/* INTRO CONTACT LINKS */
.intro-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    color: var(--ps-text-bright);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.contact-link .link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 140, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.contact-link .link-icon i {
    width: 20px;
    height: 20px;
    color: var(--ps-accent);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ps-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 140, 255, 0.2);
}

.contact-link:hover .link-icon {
    background: var(--ps-accent);
    transform: scale(1.1) rotate(5deg);
}

.contact-link:hover .link-icon i {
    color: white;
}

.contact-link:nth-child(4) .link-icon {
    background: rgba(0, 119, 181, 0.1);
}

.contact-link:nth-child(4) .link-icon i {
    color: #0077b5;
}

.contact-link:nth-child(4):hover {
    border-color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.2);
}

.contact-link:nth-child(4):hover .link-icon {
    background: #0077b5;
}

/* CTA BUTTONS */
.intro-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cta-button,
.cta-button-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button {
    background: linear-gradient(135deg, #2c8cff, #1e7ae6);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 140, 255, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 140, 255, 0.6);
}

.cta-button i,
.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(44, 140, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(44, 140, 255, 0.7);
    }
}

.cta-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ps-text-bright);
    border: 1px solid var(--ps-border);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ps-accent);
    transform: translateY(-3px);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: fadeInBounce 1s ease-out 1.5s both;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
}

.mouse-scroll {
    position: relative;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--ps-text);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--ps-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-out infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--ps-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SKILLS VISUALIZATION */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    animation: fadeInUp 0.6s ease-out both;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--ps-text-bright);
    font-weight: 600;
}

.skill-percent {
    color: var(--ps-accent);
    font-family: 'Courier New', monospace;
}

.skill-bar {
    height: 8px;
    background: var(--ps-bg-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--ps-accent), #1e7ae6);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* RESPONSIVE - SOCIAL & BUTTONS */
@media (max-width: 768px) {
    .social-float {
        right: 15px;
        gap: 10px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
    
    .social-btn::before {
        display: none;
    }
    
    .scroll-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .intro-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .intro-links {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-link {
        width: 100%;
    }
    
    .intro-cta {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-button,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

