/* Copyright (c) 2025 Toxı360 Portfolio - toxi360.org | License: license.html */

/* Portfolio Terminal Window */
.terminal-window {
    width: 98%;
    max-width: 1600px;
    height: 98vh;
    margin: 1vh auto;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.95) 100%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 209, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 209, 255, 0.2);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-window.minimized {
    transform: translate(-50%, calc(100% - 45px));
    height: 45px;
}

.terminal-window.maximized {
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    transform: none;
    top: 0;
    left: 0;
}

.terminal-header {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.95) 0%, rgba(30, 30, 35, 0.95) 100%);
    padding: 15px 25px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 209, 255, 0.2);
    backdrop-filter: blur(25px);
    cursor: move;
    user-select: none;
    position: relative;
}

.terminal-window.maximized .terminal-header {
    border-radius: 0;
}

.terminal-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dot.minimize { 
    background: linear-gradient(135deg, #FFBD2E 0%, #FFA726 100%);
}
.dot.maximize { 
    background: linear-gradient(135deg, #27C93F 0%, #4CAF50 100%);
}
.dot.close { 
    background: linear-gradient(135deg, #FF5F56 0%, #F44336 100%);
}

.dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot:hover::after {
    opacity: 1;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terminal-content {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 16px;
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.95) 0%, rgba(25, 25, 30, 0.95) 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 209, 255, 0.3) transparent;
    max-height: 80vh;
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 209, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 209, 255, 0.5);
}

/* Command Line Styles */
.command-line {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    padding: 25px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 209, 255, 0.1);
    width: 100%;
    transition: all 0.4s ease;
}

.command-line:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(0, 209, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prompt {
    position: relative;
    padding-left: 30px;
    color: #00D1FF;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.prompt::before {
    content: "→";
    color: #61AFEF;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.output {
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    position: relative;
    margin-top: 15px;
}

/* Section Styles */
.section {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.8) 0%, rgba(30, 30, 35, 0.8) 100%);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 209, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 209, 255, 0.1),
        rgba(255, 77, 141, 0.1)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section:hover::before {
    opacity: 1;
}

.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(
        45deg,
        #00D1FF,
        #61AFEF
    ) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, 
          linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                 linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section:hover::after {
    opacity: 1;
}

.section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 209, 255, 0.2);
    border-color: rgba(0, 209, 255, 0.4);
}

/* Typography */
h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #00D1FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    margin: 35px 0 25px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h3 {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin: 25px 0 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.project-card {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.8) 0%, rgba(30, 30, 35, 0.8) 100%);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 209, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.1), rgba(255, 77, 141, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transform: translate(-100%, -100%);
    transition: transform 0.8s ease, opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
    transform: translate(0%, 0%);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 209, 255, 0.2);
    border-color: rgba(0, 209, 255, 0.4);
}

.project-title, .project-description, .project-tech, .project-link {
    position: relative;
    z-index: 1;
}

.project-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00D1FF, #61AFEF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover .project-title::after {
    transform: scaleX(1);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
    margin: 18px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tech-tag {
    position: relative;
    overflow: hidden;
    background: rgba(0, 209, 255, 0.15);
    border: 1px solid rgba(0, 209, 255, 0.3);
    color: #fff;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00D1FF, #61AFEF);
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-tag:hover {
    transform: translateY(-4px);
    color: #fff;
    border-color: transparent;
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(0, 209, 255, 0.3);
}

.tech-tag:hover::before {
    opacity: 1;
}

.project-link {
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 15px;
}

.project-link .tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
}

.project-link:hover .tech-tag {
    background: rgba(97, 175, 239, 0.3);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(97, 175, 239, 0.4),
        0 0 40px rgba(97, 175, 239, 0.3);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.8) 0%, rgba(30, 30, 35, 0.8) 100%);
    border: 1px solid rgba(0, 209, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00D1FF, #61AFEF);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-section:hover::before {
    transform: scaleX(1);
}

.contact-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 209, 255, 0.2);
    border-color: rgba(0, 209, 255, 0.4);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
}

.contact-link {
    text-decoration: none;
    transition: all 0.4s ease;
    color: rgba(255, 255, 255, 0.8);
}

.contact-link:hover {
    color: #00D1FF;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-window {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .terminal-header {
        border-radius: 0;
        padding: 12px 20px;
    }

    .terminal-body {
        padding: 30px 20px;
        max-height: 70vh;
    }

    .command-line {
        padding: 20px;
        margin-bottom: 40px;
    }

    .section {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .project-card {
        padding: 25px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    h1 { 
        font-size: 32px; 
        margin-bottom: 15px;
    }
    
    h2 { 
        font-size: 24px; 
        margin: 25px 0 20px;
    }
    
    h3 { 
        font-size: 20px; 
        margin: 20px 0 12px;
    }
    
    .project-title { 
        font-size: 20px; 
        margin-bottom: 15px;
    }
    
    .prompt {
        font-size: 16px;
        padding-left: 25px;
    }

    .output {
        padding-left: 25px;
        margin-top: 12px;
    }

    .tech-tag {
        padding: 10px 18px;
        font-size: 13px;
    }

    .contact-section {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .terminal-content {
        padding: 30px 20px;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        padding: 20px 10px;
        max-height: 60vh;
    }

    .command-line {
        padding: 15px;
        margin-bottom: 30px;
    }

    .section {
        padding: 25px 15px;
        margin: 25px 0;
    }

    .project-card {
        padding: 20px 15px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    .project-title { font-size: 18px; }

    .terminal-content {
        padding: 20px 10px;
        max-height: 60vh;
    }
} 