/* SmartPwn - Cybersecurity Design System */

:root {
    /* Colors */
    --bg-dark: #0a0f1c;
    /* Deep dark blue/charcoal */
    --bg-surface: #111827;
    /* Slightly lighter for cards/sections */
    --bg-header: rgba(10, 15, 28, 0.95);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-accent: #00ff9d;
    /* Neon Green */

    --primary-color: #00ff9d;
    /* Neon Green */
    --primary-glow: rgba(0, 255, 157, 0.5);

    --secondary-color: #00b4d8;
    /* Electric Blue */
    --secondary-glow: rgba(0, 180, 216, 0.5);

    --border-color: #1f2937;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-glow: 0 0 15px var(--primary-glow);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 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));
    background-size: 100% 2px, 3px 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

code,
pre,
.mono {
    font-family: var(--font-mono);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-accent {
    color: var(--text-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Slightly squarish for tech feel */
    font-family: var(--font-mono);
    /* Technical feel for CTAs */
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.1);
}

.btn-primary:hover {
    background-color: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
    text-shadow: 0 0 5px var(--primary-color);
}

.btn-secondary {
    background-color: var(--bg-surface);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: #1f2937;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    /* Glassmorphism light */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: padding var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .bracket {
    color: var(--text-secondary);
}

.logo .text {
    color: var(--text-primary);
}

.logo .cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }
}

/* --- Homepage Expansion Styles --- */

/* Hero Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Hero Slider Styles --- */

.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh;
    /* Full screen height minus header approx */
    min-height: 600px;
    background-color: var(--bg-dark);
    margin-top: 0;
    /* Header is fixed, but we handle padding-top elsewhere if needed or just let it overlay */
    padding-top: 0;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Overlay for better text readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 15, 28, 0.95) 0%, rgba(10, 15, 28, 0.7) 50%, rgba(10, 15, 28, 0.4) 100%);
    z-index: -1;
}

.slide-content {
    position: relative;
    z-index: 3;
    padding-top: 60px;
    /* Space for fixed header */
}

/* Slide Text Animations */
.slide-tag {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 800px;
}

.slide-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
}

/* Animation Classes for content inside active slide */
.slide.active .slide-tag {
    animation: fadeIn 0.5s forwards 0.2s;
}

.slide.active .slide-title {
    animation: slideUp 0.8s forwards 0.3s;
}

.slide.active .slide-desc {
    animation: slideUp 0.8s forwards 0.5s;
}

.slide.active .slide-cta {
    animation: fadeIn 1s forwards 0.7s;
}

/* Initial state for graphics to allow animation */
.slide-tag,
.slide-title,
.slide-desc,
.slide-cta {
    opacity: 0;
    /* Hidden by default, animated in */
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.slider-arrow:hover {
    background: var(--primary-glow);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
        /* Hide arrows on mobile, use swipe or dots */
    }

    .slide-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
}

.trust-item {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card,
.service-card {
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover,
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.card .icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Methodology Timeline */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Adjust based on step-number height */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 992px) {
    .timeline::before {
        display: block;
    }
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    /* To hide line behind */
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--bg-surface);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.timeline-connector {
    display: none;
    /* Handled by ::before pseudo-element for simplicity on large screens */
}

/* Industry Tags */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.industry-tag {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    cursor: default;
}

.industry-tag:hover {
    color: #fff;
    border-color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.1);
    transform: scale(1.05);
}

/* --- Services Page Accordion --- */
.service-accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}

.accordion-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
}

.accordion-title h3 {
    margin: 0;
    font-size: 1.2rem;
}

.accordion-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.service-accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: var(--bg-dark);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.checklist li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.tech-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #d1d5db;
}

/* --- Vertical Process Timeline (Methodology Page) --- */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The vertical line */
.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-row {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-row::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-row.left {
    left: 0;
}

.timeline-row.right {
    left: 50%;
}

.timeline-row.left::after {
    right: -10px;
}

.timeline-row.right::after {
    left: -10px;
}

.timeline-content {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Mobile Responsive Timeline */
@media screen and (max-width: 768px) {
    .process-timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background-color: var(--border-color);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1px;
    }

    .timeline-row {
        padding: 10px 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
    }

    .timeline-row::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -10px;
        background-color: var(--bg-dark);
        border: 3px solid var(--primary-color);
        top: 25px;
        border-radius: 50%;
        z-index: 1;
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .timeline-row.left {
        left: 0;
    }

    .timeline-row.right {
        left: 50%;
    }

    .timeline-row.left::after {
        right: -10px;
    }

    .timeline-row.right::after {
        left: -10px;
    }

    .timeline-content {
        padding: 2rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        position: relative;
        transition: transform 0.3s ease;
    }

    .timeline-content:hover {
        transform: translateY(-5px);
        border-color: var(--primary-color);
    }

    .step-badge {
        position: absolute;
        top: -15px;
        right: 20px;
        background: var(--primary-color);
        color: var(--bg-dark);
        font-family: var(--font-mono);
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    /* Mobile Responsive Timeline */
    @media screen and (max-width: 768px) {
        .process-timeline::after {
            left: 20px;
        }

        .timeline-row {
            width: 100%;
            padding-left: 50px;
            padding-right: 20px;
        }

        .timeline-row.right {
            left: 0%;
        }

        .timeline-row.left::after,
        .timeline-row.right::after {
            left: 10px;
        }
    }
}

/* --- Reports Page Styles --- */

/* Report Mockup */
.report-mockup {
    background: #fff;
    width: 100%;
    max-width: 400px;
    height: 500px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.report-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.mockup-header {
    background: #000;
    color: var(--primary-color);
    padding: 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-align: right;
}

.mockup-body {
    padding: 2rem;
    color: #333;
}

.mockup-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.mockup-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.risk-chart-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.risk-score {
    text-align: center;
}

.score-val {
    display: block;
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.score-val.critical {
    background: #ef4444;
}

.score-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.vuln-counts {
    font-size: 0.8rem;
}

.count-item {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.critical {
    background: #ef4444;
}

.dot.high {
    background: #f97316;
}

.dot.medium {
    background: #eab308;
}

.mockup-section {
    opacity: 0.5;
}

.mockup-line {
    background: #ddd;
    height: 10px;
    margin-bottom: 10px;
    border-radius: 2px;
}

.mockup-line.title {
    height: 16px;
    width: 60%;
    background: #333;
    margin-bottom: 1.5rem;
}

.mockup-line.short {
    width: 80%;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.comparison-table th.highlight {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.comparison-table td.highlight {
    background: rgba(0, 255, 157, 0.05);
    color: #fff;
    font-weight: 500;
}

.check {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.cross {
    color: #ef4444;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }

}

/* --- Contact Page Styles --- */

.contact-form-container {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-footer p {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}