/* 
* PrivacyGuard - Main Stylesheet
* Created by: Privacy Assessment Team
* Version: 1.0
*/

/* ===== Basic Styles ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #0ea5e9;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--body-font);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px; /* Account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Custom Bootstrap Overrides ===== */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-heading {
    position: relative;
}

.heading-line {
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 1rem;
}

.section-heading.text-center .heading-line {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://source.unsplash.com/random/1920x1080/?security,technology') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.6));
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1920x500/?digital,privacy') no-repeat center center;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* ===== Icons & Graphics ===== */
.privacy-icon-container {
    background-color: rgba(255, 255, 255, 0.1);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.privacy-icon {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-icon-container-alt {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.privacy-icon-alt {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.9);
}

.service-icon-container {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 36px;
    color: #fff;
}

.step-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-icon i {
    font-size: 24px;
    color: #fff;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
}

/* ===== Service Cards ===== */
.service-card {
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Call to Action Section ===== */
.cta-section {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTQ0MCAxMDAlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSI+PHBhdGggZD0iTTEwOTQuNDQgMTAwSDE0NDBWMEg0NDQuNDRzNjUwIDE4NiAxMDk0LjQ0IDBMMTA5NC40NCAxMDB6Ij48L3BhdGg+PC9nPjwvc3ZnPg==') no-repeat bottom center;
    background-size: cover;
    z-index: 0;
    opacity: 0.2;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 80px 0 50px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 5px;
}

.social-links a {
    color: #fff;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* ===== Flash Messages ===== */
.flash-messages {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

/* ===== Assessment Form ===== */
.assessment-section {
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.range-slider {
    padding: 15px 10px;
}

.slider-labels {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.selected-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ===== Results Page ===== */
.overall-score {
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 3px solid transparent;
    box-shadow: inset 0 0 0 2px #eee;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
}

.score-danger {
    background: linear-gradient(135deg, #ffecec, #ffd9d9);
    color: var(--danger-color);
}

.score-danger::before {
    border-top-color: var(--danger-color);
    border-right-color: var(--danger-color);
}

.score-warning {
    background: linear-gradient(135deg, #fff8ec, #ffefd9);
    color: var(--warning-color);
}

.score-warning::before {
    border-top-color: var(--warning-color);
    border-right-color: var(--warning-color);
}

.score-success {
    background: linear-gradient(135deg, #efffec, #d9ffde);
    color: var(--success-color);
}

.score-success::before {
    border-top-color: var(--success-color);
    border-right-color: var(--success-color);
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.recommendation-item .card {
    transition: transform 0.3s ease;
}

.recommendation-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.next-step-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.next-step-item:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 62px;
    }
    
    .page-header {
        min-height: 30vh;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-circle::before {
        width: 140px;
        height: 140px;
    }
    
    .score-value {
        font-size: 38px;
    }
    
    .privacy-icon-container,
    .privacy-icon-container-alt {
        width: 150px;
        height: 150px;
    }
    
    .privacy-icon,
    .privacy-icon-alt {
        font-size: 80px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.4rem 1.2rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
}
