/* Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #0055aa;
    --accent-color: #00aaff;
    --text-color: #333333;
    --light-text: #777777;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
    color: white;
}

.center {
    text-align: center;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

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

nav ul li a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    text-align: center;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.about-text p {
    text-align: center;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    text-align: center;
}

.loader-inner span {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: fade 1.5s infinite alternate;
}

@keyframes fade {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.loader-inner span:nth-child(1) { animation-delay: 0.1s; }
.loader-inner span:nth-child(2) { animation-delay: 0.2s; }
.loader-inner span:nth-child(3) { animation-delay: 0.3s; }
.loader-inner span:nth-child(4) { animation-delay: 0.4s; }
.loader-inner span:nth-child(5) { animation-delay: 0.5s; }
.loader-inner span:nth-child(6) { animation-delay: 0.6s; }
.loader-inner span:nth-child(7) { animation-delay: 0.7s; }
.loader-inner span:nth-child(8) { animation-delay: 0.8s; }
.loader-inner span:nth-child(9) { animation-delay: 0.9s; }

/* Portfolio Section Styles */
.portfolio {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.portfolio-subtitle {
    font-size: 1.8rem;
    margin: 60px 0 15px;
    color: var(--secondary-color);
    text-align: center;
}

.portfolio-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    justify-content: center;
}

/* Style dla pojedynczego elementu Naomi Fitness */
.portfolio-items .portfolio-item {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 350px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: transform 0.3s ease;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: linear-gradient(45deg, var(--primary-color), #0095ff);
    color: white;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-small:hover {
    background: linear-gradient(45deg, #0095ff, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
    color: white;
}

/* Gallery Styles for 10XTraining */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: all 0.3s ease;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .portfolio-item {
        height: 300px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .portfolio-items {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 220px;
    }
}

/* Blog Section */
.blog {
    background: white;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.blog-post:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Lifestyle Section */
.lifestyle {
    background: var(--light-bg);
    text-align: center;
}

.lifestyle .section-title,
.lifestyle .section-subtitle,
.lifestyle .btn {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.instagram-feed h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.instagram-feed h3 i {
    margin-right: 10px;
    color: #e1306c;
}

.instagram-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.instagram-post {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    color: white;
    font-size: 2rem;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: left;
}

.contact-details {
    margin: 30px 0;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-details i {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.contact-details a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: flex-start;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(45deg, var(--dark-bg), #2c2c2c);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: #ddd;
}

#newsletterForm {
    position: relative;
}

#newsletterForm input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

#newsletterForm input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

#newsletterForm button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#newsletterForm button:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #aaa;
}

.footer-bottom a {
    color: #aaa;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.back-to-top:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transform: translateY(-5px);
    color: white;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .about-image img {
        max-width: 400px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }
    
    .back-to-top {
        margin: 20px auto 0;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-items {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .blog-container,
    .instagram-posts {
        grid-template-columns: 1fr;
    }
}
