/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

.no-underline {
    text-decoration: none;
    color: inherit;
}

.instagram-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px;

}



nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.contact-button {
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 5px;
    font-weight: bold;
}

.contact-button:hover {
    background: #333;
    color: #fff;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding-left: 40px; /* Align content to the left */
    background: url('./fotos/skokDoVody.JPG') no-repeat center center/cover;
    color: #fff;
}

.hero-content {
    max-width: 500px;
    
    padding: 20px 30px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3em;
    font-weight: 300;
    margin: 0 0 20px;
}

.hero-button {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.hero-button:hover {
    background: #218838;
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-container {
    flex: 1;
    max-width: 600px;
}

.tag {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.title {
    font-size: 48px;
    font-weight: 700;
    margin: 16px 0 24px;
    line-height: 1.2;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.contact-link {
    color: #666;
    text-decoration: underline;
    font-size: 16px;
}

.image-container {
    flex: 1;
    max-width: 500px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .text-container,
    .image-container {
        max-width: 100%;
    }
    
    .title {
        font-size: 36px;
    }
}

.competitive-swimming {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
}

.section-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.competition-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.competition-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.competition-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    transition: color 0.3s ease;
}

.competition-link:hover {
    color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .competitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .card-image {
        height: 200px;
    }
}

/* Projects Section */
.projects-section {
    padding: 120px 0 60px;
    background-color: white;
    color: #333;
}

.section-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.section-heading {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 1;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.tech-stack {
    display: flex;
    gap: 15px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Project card size */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Header spacing */
.project-header {
    margin-bottom: 50px;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
}

/* Title size */
.project-title {
    font-size: 28px;
    width: 100%;
}

/* Tech tags */
.tech-tag {
    padding: 10px 20px;
    font-size: 12px;
    width: 100%;
}

/* Container for the image */
.image-link {
    display: block;
    width: 66.67%; /* Same width as the image */
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Prevents hover effect outside image */
}

/* Image styling */
.project-image {
    width: 100%; /* Takes full width of its container */
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover; /* Ensures image covers the area properly */
}

/* Hover effect only applies to the actual image */
.image-link:hover .project-image {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-link {
        width: 80%; /* Slightly wider on mobile if needed */
    }
}

/* Circle buttons base styles */
.circle-link {
    width: 45px;
    height: 45px;
    position: absolute;
    bottom: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

/* Arrow button position */
.circle-link:not(.question-mark) {
    right: 30px;
}

/* Question mark button position */
.question-mark {
    left: 30px;
}

/* Hover effects */
.circle-link:hover {
    background: #333;
    color: white;
}

.circle-link:not(.question-mark):hover svg {
    transform: translateX(3px);
}

.question-mark:hover svg {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circle-link {
        width: 40px;
        height: 40px;
        bottom: 25px;
    }
    
    .circle-link:not(.question-mark) {
        right: 25px;
    }
    
    .question-mark {
        left: 25px;
    }
    
    .circle-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Fix Instagram icon alignment */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.instagram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.tooltip-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.question-mark-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.question-mark-btn:hover {
    color: #666;
}

.tooltip-content {
    position: absolute;
    bottom: -10px;
    left: calc(100% + 15px);
    transform: scale(0.95);
    width: 250px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.tooltip-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tooltip-content {
        width: 200px;
        left: calc(100% + 10px);
    }
}

.footer {
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-name {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.footer-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.email-link:hover, .phone-link:hover {
    text-decoration: underline;
}

.stats-link {
    position: relative;
}

.stats-link:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Facebook icon specific style */
.footer-social a:first-child svg {
    fill: #000; /* Makes the Facebook icon solid black */
}

/* Responsive design */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 40px 20px;
    }

    .footer-left, .footer-center, .footer-right {
        flex-direction: column;
        gap: 20px;
    }

    .footer-center {
        align-items: center;
    }

    .footer-social {
        margin-top: 20px;
    }
}

/* Add these styles to your existing navbar CSS */
.social-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.social-link:hover svg {
    opacity: 0.7;
}

/* If you need to adjust vertical alignment */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-link {
        padding: 10px 15px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Add to your existing navbar styles */
.social-item {
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.social-link:hover svg {
    opacity: 0.7;
}

/* If you need to adjust the vertical alignment */
#navbar ul {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-item {
        margin-left: 0;
    }
    
    .social-link {
        padding: 10px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}
