/* style.css */

:root {
    --federal-blue: #0A1128; /* Dark, authoritative blue */
    --federal-gray: #4A4E69; /* Medium-dark gray for secondary text/borders */
    --federal-light-gray: #F0F2F5; /* Very light gray for section backgrounds */
    --federal-accent: #BF0A30; /* Strong, clear red accent */
    --text-dark: #2C3E50; /* Darker text for readability */
    --text-light: #fff;
    --border-color: #DDE1E6; /* Light border color */
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif; /* Body font */
}

body {
    line-height: 1.7; /* Increased line height for readability */
    color: var(--text-dark);
    background-color: var(--federal-light-gray);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* More padding for a spacious feel */
}

/* Header */
header {
    background-color: var(--federal-blue);
    color: var(--text-light);
    padding: 15px 0; /* Slightly reduced padding */
    box-shadow: 0 3px 12px var(--shadow-medium); /* More prominent shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--federal-accent); /* Subtle accent line */
}

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

.logo {
    font-family: 'Playfair Display', serif; /* Serif font for logo */
    font-size: 2.3rem; /* Slightly larger */
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: baseline; /* Align at baseline for varied font sizes */
}

.logo .fbr {
    color: var(--federal-accent); /* Red for FBR */
}

.logo .federal {
    color: var(--text-light); /* White for Federal */
    margin-left: 5px;
    letter-spacing: 0.5px; /* Slight letter spacing for Federal */
}

.logo .llc {
    color: #A0D2EB; /* A professional light blue that contrasts well with dark blue */
    margin-left: 8px; /* More space */
    font-size: 1.2rem; /* Smaller for LLC */
    font-weight: 400;
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Align buttons and links */
}

.nav-links li {
    margin-left: 40px; /* Increased spacing */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600; /* Bolder for navigation */
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 8px; /* More space for underline effect */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Thicker underline */
    bottom: 0;
    left: 0;
    background-color: var(--federal-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--federal-accent); /* Highlight on hover */
    transform: translateY(-2px); /* Subtle lift */
}
.nav-links a:hover::after {
    width: 100%;
}

.btn {
    background-color: var(--federal-accent);
    color: var(--text-light);
    padding: 12px 25px; /* Larger button */
    border-radius: 4px; /* Slightly less rounded */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 700;
    border: none; /* No border */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn:hover {
    background-color: #a30825;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0.95)), url('https://via.placeholder.com/1800x900/0A1128/DDE1E6?text=SECURE+NETWORKS') center center/cover no-repeat; /* Darker overlay, abstract image */
    color: var(--text-light);
    text-align: center;
    padding: 140px 0; /* More vertical space */
    border-bottom: 5px solid var(--federal-accent); /* Stronger accent line */
}

.hero h1 {
    font-family: 'Playfair Display', serif; /* Serif font for main heading */
    font-size: 4rem; /* Larger heading */
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px; /* Increased letter spacing */
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem; /* Larger tagline */
    max-width: 900px;
    margin: 0 auto 50px auto;
    opacity: 0.9;
    font-weight: 300; /* Lighter weight for modern feel */
}

/* Section Styling */
.section {
    padding: 90px 0; /* More padding */
    text-align: center;
    position: relative; /* For potential background effects */
}

.section:nth-child(even) {
    background-color: var(--text-light); /* White background for alternating sections */
}

.section-header {
    margin-bottom: 70px; /* More space */
    position: relative;
}

.section-header h2 {
    font-family: 'Playfair Display', serif; /* Serif font for section headings */
    font-size: 3.2rem; /* Larger headings */
    color: var(--federal-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block; /* To center the pseudo-element underline */
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px; /* Underline length */
    height: 4px;
    background-color: var(--federal-accent);
    margin: 15px auto 0 auto; /* Center underline below heading */
    border-radius: 2px;
}


.section-header p {
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--federal-gray);
    font-weight: 300;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Larger min-width */
    gap: 40px;
}

.service-card {
    background-color: var(--text-light); /* Cards on light sections are white */
    border: 1px solid var(--border-color); /* Subtle border */
    border-radius: 6px; /* Less rounded corners */
    padding: 35px; /* More padding */
    text-align: left;
    box-shadow: 0 6px 20px var(--shadow-light); /* Softer, larger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden; /* For pseudo-element hover effect */
}
.section:nth-child(even) .service-card { /* Ensure white cards on white sections */
    background-color: var(--text-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Top accent line */
    background-color: var(--federal-accent);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0); /* Slide in on hover */
}

.service-card:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 10px 30px var(--shadow-medium); /* Stronger shadow on hover */
    border-color: var(--federal-blue); /* Border color change on hover */
}

.service-card h3 {
    font-family: 'Roboto', sans-serif; /* Keep this sans-serif for service titles */
    font-size: 1.6rem; /* Adjusted: Smaller font size */
    color: var(--federal-blue);
    margin-bottom: 12px; /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px; /* Reduced padding */
    line-height: 1.3; /* Adjusted: Tighter line height */
}
.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; /* Shorter underline */
    height: 2px;
    background-color: var(--federal-gray);
    opacity: 0.6;
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.95rem; /* Adjusted: Smaller font size for body text */
    line-height: 1.5; /* Adjusted: Slightly tighter line height */
}

/* Federal Certifications Section */
.federal-info {
    background-color: var(--federal-blue);
    color: var(--text-light);
    padding: 90px 0;
    text-align: center;
}

.federal-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}
.federal-info h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--federal-accent);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted min-width */
    gap: 35px;
    margin-bottom: 50px;
    text-align: left;
}

.info-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly less opaque */
    padding: 30px; /* More padding */
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Softer border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}
.info-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.info-item h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem; /* Slightly smaller for subheadings */
    color: var(--federal-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.info-item strong {
    display: inline; /* Keep strong inline with text */
    font-weight: 600; /* Bolder */
    color: var(--text-light);
}

/* Call to Action */
.cta-bottom {
    background: linear-gradient(45deg, var(--federal-accent) 0%, #CC3333 100%); /* Gradient for CTA */
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    border-top: 5px solid var(--federal-blue); /* Strong border for separation */
}

.cta-bottom h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.cta-bottom p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 50px auto;
    opacity: 0.9;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: var(--federal-gray);
    color: var(--text-light);
    padding: 50px 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 3px solid var(--federal-blue); /* Consistent border */
}

footer p {
    margin-bottom: 8px;
    line-height: 1.5;
}

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

footer a:hover {
    color: var(--federal-accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section-header h2, .federal-info h2 {
        font-size: 2.5rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .service-card h3 {
        font-size: 1.4rem; /* Adjusted for smaller screens */
    }
    .service-card p {
        font-size: 0.9rem; /* Adjusted for smaller screens */
    }
    .info-item h3 {
        font-size: 1.4rem;
    }
    .cta-bottom h2 {
        font-size: 2.8rem;
    }
    .cta-bottom p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links li {
        margin-left: 0;
    }
    .logo {
        font-size: 2rem;
    }
    .logo .llc {
        font-size: 1.1rem;
    }
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 1.5px;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section, .federal-info, .cta-bottom {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 50px;
    }
    .section-header h2, .federal-info h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .services-grid, .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-card, .info-item {
        padding: 30px;
    }
    .service-card h3 {
        font-size: 1.3rem; /* Further adjustment for very small screens */
    }
    .service-card p {
        font-size: 0.85rem; /* Further adjustment for very small screens */
    }
    .cta-bottom h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-header h2, .federal-info h2 {
        font-size: 1.8rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-card p {
        font-size: 0.8rem;
    }
    .cta-bottom h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}