/* ==========================================================================
   SECURITY SECTIONS - Premium Cybersecurity Portfolio Styles
   ========================================================================== */

/* ==========================================================================
   SECTION: Security Audit Badges
   ========================================================================== */
.security-audit-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 174, 255, 0.02) 50%, transparent 100%);
}

.security-audit-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.security-badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.security-badge-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 174, 255, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.security-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.security-badge-card:hover::before {
    left: 100%;
}

.security-badge-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 174, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 174, 255, 0.15);
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 174, 255, 0.2) 0%, rgba(0, 174, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00aeff;
    position: relative;
}

.badge-icon.ssl {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
}

.badge-icon.headers {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.05) 100%);
    color: #ffc107;
}

.badge-icon.owasp {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.05) 100%);
    color: #8a2be2;
}

.badge-icon i {
    font-size: 2.2rem;
}

.badge-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.badge-status.grade {
    background: rgba(0, 174, 255, 0.2);
    color: #00aeff;
}

.badge-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION: Interactive Terminal
   ========================================================================== */
.terminal-section {
    padding: 80px 20px;
}

.terminal-container {
    max-width: 800px;
    margin: 0 auto;
}

.terminal-window {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 174, 255, 0.2);
}

.terminal-header {
    background: linear-gradient(180deg, #1e2530 0%, #161b22 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red {
    background: #ff5f56;
}

.terminal-btn.yellow {
    background: #ffbd2e;
}

.terminal-btn.green {
    background: #27ca40;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 174, 255, 0.3);
    border-radius: 3px;
}

.terminal-output {
    margin-bottom: 10px;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-prompt {
    color: #00aeff;
}

.terminal-user {
    color: #28a745;
}

.terminal-path {
    color: #8b5cf6;
}

.terminal-command {
    color: #fff;
}

.terminal-response {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0;
    margin: 5px 0 15px 0;
}

.terminal-response.success {
    color: #28a745;
}

.terminal-response.info {
    color: #00aeff;
}

.terminal-response.list {
    color: #ffc107;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    caret-color: #00aeff;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00aeff;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.terminal-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* ==========================================================================
   SECTION: Security Tools Showcase
   ========================================================================== */
.security-tools-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.02) 50%, transparent 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8b5cf6;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.tool-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .security-badges-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .security-badge-card {
        padding: 25px 20px;
    }

    .badge-icon {
        width: 60px;
        height: 60px;
    }

    .badge-icon i {
        font-size: 1.6rem;
    }

    .terminal-container {
        margin: 0 10px;
    }

    .terminal-body {
        min-height: 250px;
        font-size: 0.85rem;
        padding: 15px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .tool-card {
        padding: 20px 10px;
    }

    .tool-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .security-audit-section,
    .terminal-section,
    .security-tools-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-body {
        font-size: 0.8rem;
    }
}