/* ============================================
   Cyber Security Tools - Professional Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Cyber Security Blue/Dark Theme */
    --primary-color: #0066cc;
    /* Professional Blue */
    --primary-dark: #004c99;
    --primary-light: #4d94ff;

    --accent-color: #00d4ff;
    /* Cyan accent for tech feel */

    --bg-dark: #0a0e17;
    /* Deep dark blue/black background */
    --bg-card: #111827;
    /* Slightly lighter for cards */
    --bg-nav: rgba(10, 14, 23, 0.95);

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-accent: #38bdf8;

    --border-color: #1e293b;
    --border-highlight: #334155;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Layout */
    --max-width: 1200px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-brand .brand-highlight {
    color: var(--primary-light);
}

.nav-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* Hero Section */
.home-section {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, var(--bg-dark) 50%);
}

.home-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-highlight);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-main);
}

/* Projects Grid */
.projects-grid,
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

/* Project Card */
.project-detail {
    /* Reusing existing class name but completely styling it differently */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.project-detail:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-title {
    font-size: 1.75rem;
    color: var(--text-main);
}

.project-badge {
    display: none;
    /* Hide old terminal badges if any remain */
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Features List */
.project-features h4 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.project-features ul {
    list-style: none;
    margin-bottom: 24px;
}

.project-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.project-features li::before {
    content: "•";
    color: var(--primary-light);
    position: absolute;
    left: 0;
}

.feature-item {
    display: block;
    /* Removing flex from old detailed style if sticking around */
}

.feature-icon {
    display: none;
    /* Remove terminal icons */
}

/* Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background-color: rgba(77, 148, 255, 0.1);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links .project-link {
    display: inline-block;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 2px;
}

.project-links .project-link:hover {
    color: var(--primary-light);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: var(--transition);
}

.contact-link:hover {
    background-color: rgba(77, 148, 255, 0.1);
    color: var(--primary-light);
}

.contact-icon {
    display: none;
    /* Simplify by removing old terminal icons text */
}

/* Focus Areas */
.focus-areas {
    padding: 0 0 80px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.focus-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.focus-title {
    font-size: 1.15rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.focus-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Featured Projects */
.featured-projects {
    padding: 0 0 80px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.featured-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.featured-cta {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-title {
        font-size: 2.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 32px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}