/* 
 * Main Stylesheet for Grzegorz Szadkowski's Portfolio Website
 * Author: [Your Name]
 * Version: 1.0
 */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-color: #6c757d;
    --gray-dark-color: #343a40;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0062cc;
    border-color: #0062cc;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER NAVIGATION ===== */
.main-header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.main-header .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.main-header .nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.main-header .nav-link:hover, 
.main-header .nav-link.active {
    color: var(--primary-color) !important;
}

.main-header .nav-link i {
    margin-right: 5px;
}

/* Navbar scroll effect */
.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== HOME PAGE ===== */
.home-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a2e;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: -2;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content-container {
    text-align: center;
    color: var(--white-color);
    padding: 2rem;
    z-index: 1;
}

.name-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in;
}

.typewriter {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    height: 2rem;
    overflow: hidden;
}

.typewriter-prefix {
    color: var(--white-color);
}

.typewriter-text {
    color: var(--primary-color);
    font-weight: 700;
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
}

.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white-color);
    opacity: 0.8;
    transition: all var(--transition-speed) ease;
}

.nav-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-5px);
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 7rem 0 3rem;
}

.profile-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.info-list {
    margin-bottom: 2rem;
}

.info-list li {
    margin-bottom: 0.75rem;
    display: flex;
}

.info-list li strong {
    min-width: 120px;
    display: inline-block;
}

.statistics-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.statistic-item {
    text-align: center;
    margin: 1rem;
}

.statistic-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.statistic-item .number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.statistic-item .text {
    font-size: 1rem;
    color: var(--secondary-color);
}

.interests-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.interest-item {
    text-align: center;
    width: 150px;
}

.interest-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.interest-item .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.interest-item .description {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.about-gallery {
    margin-top: 3rem;
}

.about-gallery .swiper-slide {
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-button {
    margin-top: 1.5rem;
    text-align: center;
}

/* ===== RESUME PAGE ===== */
.resume-section {
    padding: 7rem 0 3rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    top: 25px;
}

.timeline-item-left {
    left: 0;
}

.timeline-item-right {
    left: 50%;
}

.timeline-item-left::after {
    right: -12px;
}

.timeline-item-right::after {
    left: -12px;
}

.timeline-content {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-title {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.timeline-company {
    color: var(--secondary-color);
    font-style: italic;
}

.timeline-location {
    display: block;
    margin-top: 0.5rem;
}

.education-item {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.skills-container {
    margin-top: 4rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-label span {
    font-weight: 600;
}

.skill-label .percent {
    color: var(--secondary-color);
}

.skill-progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Experience Modals */
.experience-modal .modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.experience-modal .modal-body {
    padding: 2rem;
}

.experience-modal .vessel-info {
    margin-top: 1.5rem;
}

.experience-modal .vessel-info .item {
    margin-bottom: 0.5rem;
}

.experience-modal .vessel-info .item strong {
    display: inline-block;
    min-width: 120px;
}

/* ===== BLOG PAGE ===== */
.blog-section {
    padding: 7rem 0 3rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.blog-filters .filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: var(--white-color);
    border: 1px solid #eee;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
}

.blog-card-meta span i {
    margin-right: 5px;
}

/* Blog Post Modal */
.blog-modal .modal-header {
    border: none;
    padding: 1.5rem 1.5rem 0;
}

.blog-modal .modal-title {
    font-size: 1.75rem;
}

.blog-modal .modal-body {
    padding: 1.5rem;
}

.blog-modal .post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.blog-modal .post-content {
    margin-bottom: 2rem;
}

.blog-modal .post-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.blog-modal .comments-section {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comments-list .comment {
    display: flex;
    margin-bottom: 1.5rem;
}

.comments-list .comment-avatar {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.comments-list .comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comments-list .comment-content {
    flex: 1;
}

.comments-list .comment-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comments-list .comment-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.comments-list .comment-text {
    margin-bottom: 0.5rem;
}

.comments-list .comment-actions a {
    font-size: 0.9rem;
    margin-right: 1rem;
    color: var(--gray-color);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-section {
    padding: 7rem 0 3rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-filters .filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: var(--white-color);
    border: 1px solid #eee;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
}

.portfolio-filters .filter-btn i {
    margin-right: 8px;
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item-image {
    height: 250px;
    overflow: hidden;
}

.portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-item-image img {
    transform: scale(1.1);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-category {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.portfolio-item-title {
    color: var(--white-color);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.portfolio-item-links {
    display: flex;
    gap: 1rem;
}

.portfolio-item-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.portfolio-item-links a:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Portfolio Modal */
.portfolio-modal .modal-header {
    border: none;
    padding: 1.5rem 1.5rem 0;
}

.portfolio-modal .modal-title {
    font-size: 1.75rem;
}

.portfolio-modal .modal-body {
    padding: 1.5rem;
}

.portfolio-modal .project-info {
    margin-bottom: 2rem;
}

.portfolio-modal .project-category {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-modal .project-description {
    margin-bottom: 1.5rem;
}

.portfolio-modal .project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-modal .project-gallery {
    margin-bottom: 2rem;
}

.portfolio-modal .project-gallery img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.portfolio-modal .comments-section {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 7rem 0 3rem;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.contact-info-item .content h5 {
    margin-bottom: 0.25rem;
}

.contact-info-item .content p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    border: 1px solid #eee;
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.contact-form .btn-submit {
    padding: 0.75rem 2rem;
}

.google-map {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-section .social-link {
    background-color: #f0f4ff;
    color: var(--primary-color);
}

.contact-section .social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--white-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item-right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 19px;
    }
    
    .timeline-item-left::after {
        right: auto;
    }
}

@media (max-width: 768px) {
    .name-title {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link i {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-grid, .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .name-title {
        font-size: 2rem;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-link i {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .blog-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-filters, .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes countUp {
    0% { opacity: 0; }
    100% { opacity: 1; }
}