/*
================================
SR SECURITY - STYLESHEET
================================
Table of Contents:
1.  Global Styles & Variables
2.  Navbar
3.  Hero Section
4.  Radar Animation
5.  General Sections & Cards
6.  Resources (Password Checker)
7.  Testimonials
8.  Footer
9.  Animations
10. Responsive Design
================================
*/

/* 1. Global Styles & Variables */
:root {
    --bg-color: #0a0a1a;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --primary-accent: #00ff88;
    --secondary-accent: #00a3ff;
    --danger-color: #ff1a4d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --footer-bg: #050510;
    --font-family: 'Poppins', sans-serif;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #4753d3;
    --heading-color: #111;
    --card-bg: #ffffff;
    --border-color: #dddddd;
    --footer-bg: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 2. Navbar */
.navbar {
    padding: 1rem 5%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--primary-accent);
    color: #0a0a1a;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 3. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 2rem;
    background: radial-gradient(circle at 75% 30%, #001233, #0a0a1a 70%);
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    border-radius: 50px;
    color: #0a0a1a;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* 4. Radar Animation */
.cyber-radar-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.radar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.radar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 102, 0.1), rgba(0, 20, 26, 0.4) 70%);
    overflow: hidden;
    border: 2px solid rgba(0, 247, 255, 0.1);
}

.radar::before, .radar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 247, 255, 0.2);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.radar::before { width: 75%; height: 75%; }
.radar::after { width: 50%; height: 50%; }

.radar-scan {
    position: absolute;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.4), transparent);
    top: 0;
    left: 0;
    border-radius: 100% 0 0 0;
    animation: radar-scan 4s linear infinite;
    transform-origin: 100% 100%;
}

.radar-center {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #00f7ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #00f7ff;
}

.radar-glow {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.2), transparent 60%);
    animation: radar-glow 2s ease-in-out infinite;
}

.threat-marker {
    position: absolute; width: 12px; height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: threat-pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--danger-color);
}
.threat-1 { top: 30%; left: 35%; }
.threat-2 { top: 55%; left: 65%; }
.threat-3 { top: 70%; left: 45%; }

.radar-status {
    position: absolute; bottom: 20px; width: 100%; text-align: center;
    color: #00f7ff; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9em;
}

.threat-count { margin-top: 10px; font-weight: bold; color: var(--danger-color); }

/* 5. General Sections & Cards */
.features, .resources, .testimonials {
    padding: 6rem 5%;
}
.features { background: var(--bg-color); }
.resources { background: var(--footer-bg); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; color: var(--heading-color); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1rem; opacity: 0.7; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

/* 6. Resources (Password Checker) */
.resources-container {
    max-width: 500px;
    margin: 0 auto;
}

.security-checker {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.checker-header { text-align: center; margin-bottom: 1.5rem; }
.checker-header i { font-size: 2.5rem; color: var(--primary-accent); margin-bottom: 1rem; }
.checker-header h3 { color: var(--heading-color); font-size: 1.4rem; }

.input-container { position: relative; }
#passwordInput {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px; font-size: 1rem; transition: all 0.3s ease;
}
#passwordInput:focus {
    outline: none; border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.visibility-toggle {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-color);
    cursor: pointer; padding: 5px; opacity: 0.7;
}

.strength-meter { height: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; margin: 1.5rem 0; overflow: hidden; }
.strength-bar { height: 100%; width: 0; transition: all 0.4s ease; }
.strength-feedback { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.9rem; }
.strength-status { font-weight: 600; text-transform: uppercase; }

.requirements-list { margin: 1.5rem 0; }
.requirement { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 0.9rem; opacity: 0.7; transition: all 0.3s ease; }
.requirement.valid { color: var(--primary-accent); opacity: 1; }
.requirement.valid i { color: var(--primary-accent); }
.requirement i { transition: color 0.3s ease; }

/* Strength Colors */
.strength-bar[data-strength="0"] { background: var(--danger-color); width: 10%; }
.strength-bar[data-strength="1"] { background: var(--danger-color); width: 25%; }
.strength-bar[data-strength="2"] { background: #fb8c00; width: 50%; }
.strength-bar[data-strength="3"] { background: #fdd835; width: 75%; }
.strength-bar[data-strength="4"] { background: var(--primary-accent); width: 100%; }

/* 7. Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.client-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.client-img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--primary-accent); object-fit: cover; }
.client-info h4 { color: var(--heading-color); margin: 0; }
.client-info .client-role { font-size: 0.9rem; opacity: 0.7; }
.testimonial-text { line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.rating { color: #ffd700; }

/* 8. Footer */
.company-footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 4rem 5% 2rem;
}

.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-heading { color: var(--heading-color); font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-text { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.footer-icon { color: var(--primary-accent); }
.footer-link { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary-accent); }

.social-container { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link {
    color: #0a0a1a; background-color: var(--primary-accent);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s ease;
}
.social-link:hover { background-color: var(--secondary-accent); transform: translateY(-3px); }

.copyright-section { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; }
.copyright-text { opacity: 0.7; font-size: 0.9rem; }

/* 9. Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes radar-scan {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes radar-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes threat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 10. Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 8rem 5% 4rem;
    }
    .hero h1 { font-size: 3rem; }
    .cyber-radar-container {
        width: 300px;
        height: 300px;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--footer-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.5s ease-in-out;
        z-index: 100;
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-container { justify-content: center; }
}


/*
=========================================================
== শুধুমাত্র নতুন পৃষ্ঠাগুলোর জন্য স্টাইল (Services, Resources, Contact) ==
=========================================================
*/

/* ১. সব নতুন পেজের জন্য সাধারণ হেডার স্টাইল */
.page-header {
    padding: 10rem 5% 5rem;
    background: var(--footer-bg); /* ফুটারের মতো ব্যাকগ্রাউন্ড ব্যবহার করা হয়েছে */
    text-align: center;
}

.page-header .section-title {
    font-size: 3rem;
    /* শিরোনামে আকর্ষণীয় গ্রেডিয়েন্ট এফেক্ট */
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* গ্রেডিয়েন্ট কাজ করার জন্য এটি জরুরি */
}

.page-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ন্যাভবারের সক্রিয় লিংকের জন্য স্টাইল */
.nav-links a.active {
    color: var(--primary-accent);
}


/* ২. SERVICES পেজের জন্য স্টাইল */
.services-detailed {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.service-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-accent);
}

.service-detail-card .card-icon {
    font-size: 3rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.service-detail-card h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
    display: inline-block; /* লেখাগুলোকে মাঝখানে আনার জন্য */
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.service-features-list .fa-check-circle {
    color: var(--success-color);
}


/* ৩. RESOURCES পেজের জন্য স্টাইল */
.resources-content {
    padding: 5rem 5%;
}

.section-title-sub {
    font-size: 2.2rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: var(--text-color);
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.cta-btn-outline:hover {
    background: var(--primary-accent);
    color: #0a0a1a;
}


/* ৪. CONTACT পেজের জন্য স্টাইল */
.contact-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-accent);
    width: 30px;
}

.info-item span, .info-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.info-item a:hover {
    color: var(--primary-accent);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--heading-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.map-container {
    margin-top: 4rem;
    text-align: center;
}

.map-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--heading-color);
}

/* ৫. নতুন পেজগুলোর জন্য রেসপন্সিভ স্টাইল */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.projects {
    padding: 6rem 5%;
    background-color: var(--footer-bg); /* A slightly different background to stand out */
}

/* For light mode */
[data-theme="light"] .projects {
    background-color: #e9ecef;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    height: 220px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the button to stick to the bottom */
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: rgba(0, 255, 136, 0.1);
    color: var(--primary-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-color);
    flex-grow: 1; /* Pushes the button down */
    margin-bottom: 1.5rem;
}

/* Reusing the button style from Resources page */
.project-content .cta-btn-outline {
    display: inline-block;
    align-self: flex-start; /* Aligns button to the left */
}

.logo-text { /* অথবা আপনার ন্যাভবরের লোগোর ক্লাস */
    font-family: "Orbitron", sans-serif; /* <-- এই লাইনটি ফন্ট পরিবর্তন করবে */
    font-size: 1.8rem;
    font-weight: 700; /* ফন্টের বোল্ডনেস */
    font-style: italic; /* লেখাকে ইটালিক করার জন্য */
    text-decoration: none;
    
    /* গ্রেডিয়েন্ট রঙের জন্য কোড */
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
