/* Dark Theme for Sysafe Website
   Based on reference design provided by client
   Created: June 8, 2025
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
    padding-top: 70px; /* Space for fixed header */
}

/* Header and Navigation */
header {
    background-color: #212121;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

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

.nav-item {
    margin-left: 20px;
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: #00a8ff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #212121;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    min-width: 200px;
    display: none;
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid #333;
}

.dropdown-menu li {
    list-style: none;
    padding: 5px 15px;
}

.dropdown-menu a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    color: #00a8ff;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00a8ff;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Binary Code Header Background */
.binary-header {
    background-image: url('../images/digital-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 6rem 0;
    margin: -20px -20px 2rem;
}

.binary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.binary-header .container {
    position: relative;
    z-index: 2;
}

.binary-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.binary-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Page Headers */
.page-header {
    background-image: url('../images/digital-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 4rem 0;
    margin: -20px -20px 2rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    background-color: #212121;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00a8ff;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

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

.feature-icon {
    color: #00a8ff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: #0088cc;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    margin: 3rem -20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #00a8ff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0088cc;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0088cc;
}

/* Testimonial Section */
.testimonial-section {
    background-color: #1a1a1a;
    padding: 3rem 0;
    margin: 3rem -20px;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background-color: #212121;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    color: #e0e0e0;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: #333;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-info {
    margin-left: 1rem;
}

.testimonial-author-name {
    font-weight: 600;
    color: #ffffff;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
}

.faq-question {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

/* Footer */
footer {
    background-color: #121212;
    color: #ffffff;
    padding: 4rem 0 2rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: #00a8ff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 0;
}

.footer-links a {
    color: #cccccc;
    margin-left: 1.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #00a8ff;
}

/* Skill Bars */
.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.skill-progress {
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background-color: #00a8ff;
    border-radius: 5px;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #0088cc;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    margin: 3rem -20px;
}

.why-choose-us h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.why-choose-us p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    text-align: center;
}

.feature-box-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-box h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .binary-header h1, .page-header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #212121;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        min-width: auto;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .binary-header, .page-header {
        padding: 3rem 0;
    }
    
    .binary-header h1, .page-header h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}
