/* Enhanced Styles for BlackIceSecure Website */

/* Sticky Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    overflow-x: visible;
}

/* Ensure navigation is always visible */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-links li {
    margin-left: 15px;
    white-space: nowrap;
}

/* Enhanced Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-accent {
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0) 100%);
    z-index: -1;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-color-light);
}

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

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Enhanced Footer */
footer {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

/* Horizontal Footer Links */
.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Enhanced Mobile Navigation */
.mobile-nav {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Improved Accessibility */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Enhanced Section Spacing */
section {
    padding: 5rem 0;
}

section.bg-dark {
    position: relative;
    overflow: hidden;
}

section.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

section.bg-dark > .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Grid Layout */
.grid {
    gap: 2rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .nav-links {
        font-size: 0.9rem;
    }
    
    .nav-links li {
        margin-left: 10px;
    }
    
    .footer-links li {
        font-size: 0.8rem;
    }
}

/* Enhanced Link Styles */
a {
    transition: color 0.3s ease;
    text-decoration: none;
}

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

/* Enhanced List Styles */
ul:not(.nav-links):not(.mobile-nav-links):not(.footer-links) {
    padding-left: 1.2rem;
}

ul:not(.nav-links):not(.mobile-nav-links):not(.footer-links) li {
    margin-bottom: 0.5rem;
    position: relative;
}

ul:not(.nav-links):not(.mobile-nav-links):not(.footer-links) li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
