/* 
Modern Style CSS for Alton Johnson's Website
*/

:root {
    --black: #000000;
    --dark-gray: #111111;
    --darker-gray: #0a0a0a;
    --light-gray: #333333;
    --text-gray: #808080;
    --white: #ffffff;
    --accent-red: #ff0000;
    --accent-teal: #00a0a0;
    --transition-speed: 0.3s;
    --nav-link-after-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.display-2 {
    font-size: 4rem;
    letter-spacing: 2px;
}

.display-5 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.fw-light {
    font-weight: 300 !important;
}

/* Links and Buttons */
a {
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-red);
}

.text-accent {
    color: var(--accent-red);
}

.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-red);
    transition: width var(--transition-speed) ease;
}

.link-hover:hover::after {
    width: 100%;
}

.btn-outline-accent {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    background: transparent;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    font-size: 0.9rem;
}

.btn-outline-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-accent:hover::before {
    left: 0;
}

.btn-outline-accent:hover {
    color: var(--black);
    border-color: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red);
    transform: translateY(-3px);
}

/* Background Colors */
.bg-dark-gray {
    background-color: var(--dark-gray);
}

.bg-black {
    background-color: var(--black);
}

/* Header and Navigation */
header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    padding: 20px 0;
    transition: padding var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.logo-image {
    width: 60px;
    height: auto;
    transition: all var(--transition-speed) ease;
}

.scrolled .logo-image {
    width: 50px;
}

/* Fix for navigation hover issue */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0 15px;
    position: relative;
}

.navbar-nav .nav-link {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
    padding: 15px 0;
    position: relative;
    text-transform: uppercase;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: var(--nav-link-after-width, 0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-red);
    transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link.hovered::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

/* Highlights Section */
.highlights-section {
    background-color: var(--darker-gray);
    position: relative;
}

.highlight-card {
    background-color: var(--dark-gray);
    padding: 30px;
    height: 100%;
    transition: transform var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.highlight-card:hover::after {
    width: 100%;
}

.highlight-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.highlight-card:hover .icon-wrapper img {
    transform: scale(1.1);
}

/* Story Section */
.story-section {
    position: relative;
}

.story-links {
    background: rgba(17, 17, 17, 0.8);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.story-link-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.story-link-item:last-child {
    border-bottom: none;
}

.story-link-item:hover {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red);
    transform: translateX(10px);
}

.red-line {
    width: 3px;
    height: 30px;
    background: var(--accent-red);
    margin-right: 1rem;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-red);
    transition: all var(--transition-speed) ease;
}

.story-link-item:hover .red-line {
    box-shadow: 0 0 20px var(--accent-red);
    background: var(--accent-red);
}

.story-link-item h5 {
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

/* Media Section */
.media-section {
    background-color: var(--darker-gray);
}

.media-card {
    background-color: var(--dark-gray);
    padding: 30px;
    height: 100%;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
}

.media-card:hover {
    border-left: 3px solid var(--accent-red);
    transform: translateX(10px);
}

.media-card h4,
.media-card p {
    color: var(--white);
}

.media-card:hover h4,
.media-card:hover p {
    color: var(--white);
}

/* Page Header Section */
.page-header-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.page-header-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.page-header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9px;
    height: 100%;
    width: 2px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background-color: var(--black);
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-red);
    transform: scale(1.2);
    border-color: var(--accent-red);
}

.timeline-date {
    position: absolute;
    left: -110px;
    top: 5px;
    font-weight: 700;
    color: var(--accent-red);
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(-5px);
}

.timeline-content {
    background-color: var(--light-gray);
    padding: 15px 20px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-content {
    background-color: var(--dark-gray);
    transform: translateX(5px);
}

/* Story Content */
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-content .lead {
    font-size: 1.4rem;
    color: #ccc;
}

.story-blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 20px 0 20px 30px;
    background-color: var(--dark-gray);
    font-size: 1.2rem;
    font-style: italic;
    color: #ddd;
}

/* About Card */
.about-card {
    position: relative;
    background-color: var(--dark-gray);
    padding: 30px;
    transition: all var(--transition-speed) ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-card .red-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-red);
}

.about-card-content {
    padding-left: 10px;
}

.hobby-image {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hobby-image:hover {
    transform: scale(1.02);
}

/* Speaker Section */
.speaker-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.speaker-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.speaker-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
}

.contact-info-item {
    margin-bottom: 10px;
}

.headshot-gallery {
    margin-bottom: 0;
}

.headshot-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
}

.headshot-image {
    transition: all var(--transition-speed) ease;
    border-radius: 5px;
}

.headshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.headshot-text {
    color: white;
    font-size: 2rem;
}

.headshot-link:hover .headshot-overlay {
    opacity: 1;
}

.headshot-link:hover .headshot-image {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--text-gray);
}

.footer-logo {
    max-width: 250px;
    height: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.copyright p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Press Page Styles */
.press-item {
    position: relative;
    transition: all var(--transition-speed) ease;
}

.press-item:hover {
    transform: translateY(-10px);
}

.press-image-container {
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.press-image-container img {
    width: 100%;
    height: auto;
    transition: all var(--transition-speed) ease;
}

.press-item:hover .press-image-container img {
    transform: scale(1.05);
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 8px 30px;
    border-radius: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

.btn-accent:hover {
    background-color: var(--white);
    color: var(--accent-red);
}

.bio-card, .contact-card {
    background-color: var(--dark-gray);
    border-left: 3px solid var(--accent-red);
    transition: all var(--transition-speed) ease;
}

.bio-card:hover, .contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animation utility classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1400px) {
    .hero-content,
    .page-header-content {
        left: 35%;
    }
}

@media (max-width: 991.98px) {
    .display-2 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .hero-content,
    .page-header-content {
        left: 30%;
    }
    
    .story-link-item {
        padding-left: 55px;
    }
    
    .red-line {
        width: 3px;
    }
    
    .timeline-item {
        padding-left: 15px;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 10px;
        display: block;
    }
    
    .timeline {
        padding-left: 20px;
    }
}

@media (max-width: 767.98px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .hero-content,
    .page-header-content {
        left: 20%;
    }
    
    .navbar-nav .nav-link {
        margin: 10px 0;
    }
    
    .highlight-card,
    .media-card,
    .about-card {
        padding: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .page-header-section {
        height: 40vh;
    }
}

@media (max-width: 575.98px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .hero-content,
    .page-header-content {
        left: 10%;
    }
    
    .story-link-item {
        padding-left: 45px;
    }
    
    .red-line {
        width: 3px;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-dot {
        width: 12px;
        height: 12px;
        left: -20px;
    }
}