/* 
* Primary Stylesheet for Benjamin Grifka's Portfolio
* Author: Benjamin Grifka
* Version: 1.1
*/

/* ======= VARIABLES ======= */
:root {
    /* Colors */
    --primary-color: #800000; /* Maroon */
    --secondary-color: #2c3e50; /* Dark blue/slate */
    --accent-color: #e74c3c; /* Red accent */
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --text-light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --success-color: #28a745;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1.5rem;
    
    /* Shadows */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* ======= RESET & BASE STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

section {
    margin-bottom: 4rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--heading-font);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #600000; /* Darker maroon */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f; /* Darker slate */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ======= HEADER & NAVIGATION ======= */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 1rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.desktop-nav {
    display: flex;
}

.desktop-nav li {
    margin-left: 1.5rem;
}

.desktop-nav a {
    position: relative;
    padding: 0.5rem 0;
    color: var(--secondary-color);
    font-weight: 500;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-nav {
    display: none;
    background-color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav li {
    margin: 0.75rem 0;
}

.mobile-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
}

.mobile-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* ======= HERO SECTION ======= */
.hero {
    padding: 5rem 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    margin-bottom: 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.hero-text h2 {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--card-shadow);
    margin: 0 auto;
}

/* Reset all margins for large profile image */
.profile-image-container.large {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Also add specific rule for the image */
.profile-image-container img {
    margin: 0;
    padding: 0;
    display: block;
}

/* Add styles for about image section */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======= EXPERTISE CARDS ======= */
.expertise {
    padding: var(--section-padding);
    background-color: white;
    margin-bottom: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border-top: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.75rem;
}

.card h3 {
    margin-bottom: 1.25rem;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.card-skills span {
    background-color: rgba(128, 0, 0, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ======= RECENT WORK SECTION ======= */
.recent-work {
    padding: var(--section-padding);
    background-color: var(--light-bg);
    margin-bottom: 3rem;
}

.work-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.work-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    margin-bottom: 2rem;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.work-image {
    height: 200px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-details {
    padding: 1.75rem;
}

.work-details h3 {
    margin-bottom: 0.75rem;
}

.work-details p {
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

/* ======= SKILLS OVERVIEW ======= */
.skills-overview {
    padding: var(--section-padding);
    background-color: white;
    margin-bottom: 3rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skills-category {
    margin-bottom: 2.5rem;
}

.skills-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-item span {
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* ======= CALL TO ACTION ======= */
.cta {
    padding: 4.5rem 0;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ======= PAGE BANNERS ======= */
.page-banner {
    padding: 4rem 0;
    background-color: var(--light-bg);
    margin-bottom: 3rem;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner-buttons {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* ======= ABOUT PAGE STYLES ======= */
.about-intro, 
.journey-section, 
.philosophy-section, 
.interests-section, 
.future-section {
    margin-bottom: 4rem;
}

.about-grid, 
.philosophy-content, 
.future-content {
    margin-bottom: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center; /* Change from 'start' to 'center' for better alignment */
}

.about-content {
    padding-top: 0; /* Remove top padding since we're using center alignment */
}

/* ======= CONTACT PAGE STYLES ======= */
.contact-info-section, 
.resume-download {
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

/* Contact information styles */
.contact-methods {
    padding-right: 1.5rem;
}

.contact-items {
    margin: 2.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
    transition: transform var(--transition-fast);
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: rgba(128, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.25rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-detail {
    flex: 1;
}

.contact-detail h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
}

.contact-detail p {
    margin: 0;
}

.social-contact {
    margin-top: 2.5rem;
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(128, 0, 0, 0.1);
    border-radius: 50px;
    transition: all var(--transition-fast);
    color: var(--secondary-color);
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Form styles */
.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fa;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
    background-color: white;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e9ecef;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-response {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-weight: 500;
    min-height: 24px;
}

.form-response.success {
    color: var(--success-color);
}

.form-response.error {
    color: var(--accent-color);
}

/* Resume options styles */
.resume-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resume-option {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Set a minimum height to ensure equal sizing */
}

.resume-option:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.resume-option .resume-content {
    flex: 1;
}

.resume-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resume-option h3 {
    margin-bottom: 1rem;
}

.resume-option p {
    margin-bottom: 1.5rem;
}

.resume-option .resume-button-container {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-social {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-social a {
        width: fit-content;
    }
    
    .resume-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .checkbox-container {
        padding-left: 25px;
    }
}

/* ======= IT & SOFTWARE PAGES ======= */
.featured-image {
    aspect-ratio: 4 / 3;
    width: 50%;
    overflow: hidden;
    border-radius: 12px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-section, 
.skills-section, 
.timeline-section, 
.projects-section, 
.featured-projects, 
.additional-projects, 
.education-section {
    margin-bottom: 4rem;
}

.overview-grid, 
.featured-grid, 
.education-grid {
    margin-bottom: 2.5rem;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* spacing between items */
}

.project-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background-color: black;
  margin-left: 0.75rem;
}

.project-card, 
.featured-project, 
.certification-item, 
.timeline-item {
    margin-bottom: 2.5rem;
}

/* ======= FOOTER ======= */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-info, 
.footer-links, 
.footer-contact {
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: #adb5bd;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #adb5bd;
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    section {
        margin-bottom: 3.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .profile-image-container {
        width: 250px;
        height: 250px;
    }
    
    .cards-container,
    .work-items,
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    section {
        margin-bottom: 3rem;
    }
    
    .section-title {
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .hero {
        padding: 3.5rem 0;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
    
    .expertise,
    .recent-work,
    .skills-overview {
        padding: 3.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        margin-bottom: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-image-container {
        width: 180px;
        height: 180px;
    }
    
    .card {
        padding: 1.75rem;
    }
}
/* Add these styles to your styles.css file */

/* Journey Timeline Styles Update */
.journey-item {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: center;
    position: relative;
}

.journey-icon {
    flex: 0 0 50px; /* Fixed width for icons */
    height: 50px;
    background-color: rgba(128, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 2; /* Keep icons above the lines */
}

.journey-content {
    flex: 1;
}

.journey-content h3 {
    margin: 0 0 1rem 0;
    display: inline-block;
}

/* Lines between items */
.journey-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px; /* Center with the icon */
    top: 100%; /* Start right at the bottom of the current item */
    height: 2rem; /* Longer line */
    width: 2px;
    background-color: rgba(128, 0, 0, 0.2);
    z-index: 1;
    transform-origin: top;
    animation: grow-line 1s ease forwards;
    animation-play-state: paused;
}

/* First line (optional) */
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 25px; /* Center with the icons */
    top: -2rem; /* Position above the first item */
    height: 2rem; /* Same length as other lines */
    width: 2px;
    background-color: rgba(128, 0, 0, 0.2);
    z-index: 1;
    transform-origin: bottom; /* Grow from bottom up */
    animation: grow-line-up 1s ease forwards;
    animation-play-state: paused;
}

/* Animation for lines growing downward */
@keyframes grow-line {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* Animation for the first line growing upward */
@keyframes grow-line-up {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* Trigger animations when in view */
.journey-timeline.in-view::before {
    animation-play-state: running;
}

.journey-item.in-view::after {
    animation-play-state: running;
}

/* Sync line animation with the journey item's fade-in animation */
.journey-item.animate-fadeIn.delay-200::after {
    animation-delay: 0.2s;
}

.journey-item.animate-fadeIn.delay-400::after {
    animation-delay: 0.4s;
}

.journey-item.animate-fadeIn.delay-600::after {
    animation-delay: 0.6s;
}

.journey-item.animate-fadeIn.delay-800::after {
    animation-delay: 0.8s;
}

.journey-item.animate-fadeIn.delay-1000::after {
    animation-delay: 1s;
}

/* Ensure last journey item doesn't have extra margin */
.journey-item:last-child {
    margin-bottom: 0;
}

/* Add these styles to your styles.css file to fix the contact page social icons */

/* Contact page specific social links - different from footer */
.contact-methods .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-methods .social-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: rgba(128, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    color: var(--secondary-color);
    text-decoration: none;
    width: fit-content;
}

.contact-methods .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.contact-methods .social-links a i {
    font-size: 1.25rem;
    width: 20px; /* Fixed width to align icons */
    text-align: center;
}

.contact-methods .social-links a span {
    font-weight: 500;
    font-size: 1rem;
}

/* Ensure footer social links remain unchanged */
footer .social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

footer .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Mobile responsiveness for contact social links */
@media (max-width: 768px) {
    .contact-methods .social-links {
        gap: 0.5rem;
    }
    
    .contact-methods .social-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-methods .social-links a i {
        font-size: 1.1rem;
    }
}