/* 
   Pentest.ly Elite CSS 
   Theme: Cyberpunk / Modern Hacker / High-End Sec 
*/

:root {
    /* Color Palette */
    --bg-base: #0a0b10;
    --bg-surface: #13151c;
    --bg-surface-lighter: #1e212b;

    --primary: #FE8A52;
    /* Logo Orange */
    --primary-glow: rgba(254, 138, 82, 0.4);

    --secondary: #4C4B4C;
    /* Logo Dark Grey */
    --secondary-glow: rgba(76, 75, 76, 0.4);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    --danger: #ff0055;
    --warning: #ffb800;
    --success: #00ffcc;

    /* Fonts */
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Fira Code', monospace;
    --font-mono: 'Fira Code', monospace;

    /* Borders & Shadow */
    --border-glass: rgba(254, 138, 82, 0.15);
    /* Orange-tinted borders */
    --border-primary: rgba(254, 138, 82, 0.2);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Custom CRT subtle curve */
    text-shadow: 0 0 2px rgba(254, 138, 82, 0.3);
}

/* CRT Scanlines Overlay */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Background Effects */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--border-glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    opacity: 0.3;
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-bg.top-left {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

.glow-bg.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
}

.py-section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(254, 138, 82, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: rgba(254, 138, 82, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
    text-shadow: 0 0 8px var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: white;
    line-height: 1.2;
}

/* Glitch Effect on Highlight */
.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0px rgba(254, 138, 82, 0.5), -2px -2px 0px rgba(0, 255, 255, 0.4);
    animation: textGlitch 3s infinite;
}

@keyframes textGlitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-cyber {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(123, 44, 191, 0.1);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: 50px;
    color: #c77dff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #c77dff;
    border-radius: 50%;
    box-shadow: 0 0 10px #c77dff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(199, 125, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(199, 125, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(199, 125, 255, 0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Terminal Animation */
.terminal-window {
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(254, 138, 82, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: #1a1c23;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a8b2d1;
    min-height: 350px;
}

.prompt {
    color: var(--primary);
}

.terminal-body p {
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.4;
}

/* CSS Animation Delays for Terminal */
.output {
    opacity: 0;
    animation: typeReveal 0.1s forwards;
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 2.5s;
}

.delay-4 {
    animation-delay: 2.7s;
}

.delay-5 {
    animation-delay: 2.9s;
}

.delay-6 {
    animation-delay: 4.5s;
}

.delay-7 {
    animation-delay: 5.5s;
}

.delay-8 {
    animation-delay: 7s;
}

@keyframes typeReveal {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats */
.border-y {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(19, 21, 28, 0.5);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    padding: 40px 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.stat-label {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Services */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(254, 138, 82, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Methodology */
.bg-darker {
    background: #07080b;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.col-half {
    flex: 1;
    min-width: 300px;
}

.align-center {
    align-items: center;
}

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 16px;
    width: 2px;
    background: rgba(123, 44, 191, 0.3);
}

.timeline-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.step-num {
    width: 34px;
    height: 34px;
    background: var(--bg-base);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    z-index: 1;
    box-shadow: 0 0 15px var(--secondary-glow);
}

.step-content h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.code-display {
    background: #11141e;
    border-radius: 8px;
    border: 1px solid rgba(123, 44, 191, 0.4);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.1);
}

.code-header {
    background: #181c29;
    padding: 10px 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glass);
}

.code-display pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-display code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
}

.code-display .comment {
    color: #6272a4;
}

.code-display span {
    color: #f8f8f2;
}

/* Contact CTA */
.cta-box {
    background: linear-gradient(180deg, var(--bg-surface-lighter), var(--bg-surface));
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.email-link {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.email-link:hover {
    text-shadow: 0 0 10px var(--primary-glow);
    color: white;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    background: #050608;
    padding-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
    background: #020304;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .row {
        flex-direction: column;
    }

    .terminal-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
    }
}