/* Base styles */
:root {
    --primary-color: #ccd9ae;
    --primary-light: #e3ead5;
    --primary-dark: #a9b88d;
    --secondary-color: #fbbeaa;
    --secondary-light: #ffe0d4;
    --secondary-dark: #e99e83;
    --accent-color: #e9c46a;
    --text-color: #3a3a3a; /* Graphite */
    --light-color: #ffe8e0; /* Updated light color */
    --dark-color: #333333; /* Darker graphite */
    --border-color: #e8e8e8;
    --pattern-opacity: 0.12;
    --font-main: 'Open Sans', Arial, sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --container-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    --section-padding: 7rem 0;
    --animation-timing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: #ffe8e0;
    background-image: none;
    background-attachment: fixed;
    font-weight: 300;
    letter-spacing: 0.01em;
}

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

/* Pattern Elements */
.pattern-dot {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: var(--pattern-opacity);
    z-index: -1;
}

.pattern-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    opacity: var(--pattern-opacity);
    z-index: -1;
}

.pattern-line {
    position: absolute;
    height: 2px;
    background-color: var(--primary-dark);
    opacity: var(--pattern-opacity);
    z-index: -1;
    transform: rotate(45deg);
}

.pattern-square {
    position: absolute;
    background-color: transparent;
    border: 2px solid var(--secondary-dark);
    opacity: var(--pattern-opacity);
    z-index: -1;
}

/* Add pattern elements to sections */
.section-with-pattern {
    position: relative;
    overflow: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s var(--animation-timing);
    position: relative;
    display: inline-block;
}

a:hover {
    color: #fbbeaa;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #fbbeaa;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s var(--animation-timing);
}

a:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.button {
    display: inline-block;
    background-color: #fbbeaa;
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s var(--animation-timing);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(251, 190, 170, 0.4);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s var(--animation-timing);
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    background-color: #fbbeaa;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(251, 190, 170, 0.6);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-color);
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ccd9ae, #fbbeaa);
    transition: width 0.4s var(--animation-timing);
}

section:hover h2::after {
    width: 100px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Element animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: var(--animation-timing);
}

.animate-fadeIn {
    animation-name: fadeIn;
}

.animate-fadeInLeft {
    animation-name: fadeInLeft;
}

.animate-fadeInRight {
    animation-name: fadeInRight;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Header and Navigation */
header {
    position: relative;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    background-color: var(--light-color);
    background-image: none;
    overflow: hidden;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.8s var(--animation-timing);
}

.logo a {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccd9ae;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--animation-timing);
}

.logo a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.menu li {
    margin: 0;
    transform: translateY(0);
    transition: transform 0.3s var(--animation-timing);
}

.menu li:hover {
    transform: translateY(-3px);
}

.menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: all 0.3s var(--animation-timing);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.menu a:hover {
    color: #fbbeaa;
    background-color: rgba(251, 190, 170, 0.1);
    transform: translateY(-2px);
}

.menu a::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s var(--animation-timing);
}

/* Hero section with collage effect */
.hero {
    text-align: left;
    padding: 0;
    position: relative;
    z-index: 2;
    background-image: url('../img/postac/hero.JPG');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
    animation: fadeIn 1s var(--animation-timing);
    display: flex;
    align-items: center;
    background-color: #ffe8e0;
}

.hero .hero-content {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    width: 90%;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--dark-color);
    text-shadow: none;
    animation: fadeIn 1.2s var(--animation-timing);
    text-align: left;
}

.hero h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: none;
    animation: fadeIn 1.4s var(--animation-timing);
    text-align: left;
}

.hero h2::after {
    display: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--text-color);
    text-shadow: none;
    animation: fadeIn 1.6s var(--animation-timing);
    text-align: left;
}

.hero .button {
    background-color: #fbbeaa;
    color: white;
    box-shadow: 0 4px 15px rgba(251, 190, 170, 0.4);
    border: none;
    animation: fadeIn 1.8s var(--animation-timing);
    transition: transform 0.3s var(--animation-timing), box-shadow 0.3s var(--animation-timing);
}

.hero .button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(251, 190, 170, 0.6);
}

/* About section */
#o-mnie {
    padding: var(--section-padding);
    background-color: #ffe8e0;
    box-shadow: var(--container-shadow);
    position: relative;
}

#o-mnie h2 {
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.2s;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left-text image right-text";
    align-items: flex-start;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text-left {
    grid-area: left-text;
    text-align: right;
    padding-right: 1rem;
    opacity: 0;
    animation: fadeInLeft 0.8s var(--animation-timing) forwards;
    animation-delay: 0.4s;
}

.about-image {
    grid-area: image;
    width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.6s;
}

.about-text-right {
    grid-area: right-text;
    text-align: left;
    padding-left: 1rem;
    opacity: 0;
    animation: fadeInRight 0.8s var(--animation-timing) forwards;
    animation-delay: 0.8s;
}

.image-placeholder {
    display: none;
}

.about-text-left h3,
.about-text-right h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.about-text-left h3::after,
.about-text-right h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ccd9ae;
    transition: width 0.4s var(--animation-timing);
}

.about-text-left h3:hover::after,
.about-text-right h3:hover::after {
    width: 100%;
}

/* Szkolenia section */
#szkolenia {
    padding: var(--section-padding);
    background-color: #ffe8e0;
    position: relative;
    overflow: hidden;
}

#szkolenia h2 {
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.2s;
}

.tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.4s;
}

.tab-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s var(--animation-timing);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: all 0.3s var(--animation-timing);
}

.tab-button:hover::before, .tab-button.active::before {
    background-color: #ccd9ae;
}

.tab-button:hover, .tab-button.active {
    background-color: rgba(251, 190, 170, 0.1);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 190, 170, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.training-item {
    background-color: #ffe8e0;
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--animation-timing);
    border: none;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
}

.training-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ccd9ae, #fbbeaa);
    transition: all 0.3s var(--animation-timing);
}

.training-item:nth-child(1) { animation-delay: 0.4s; }
.training-item:nth-child(2) { animation-delay: 0.6s; }
.training-item:nth-child(3) { animation-delay: 0.8s; }
.training-item:nth-child(4) { animation-delay: 1s; }

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

.training-item:hover::before {
    width: 8px;
}

.training-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s var(--animation-timing);
}

.training-item:hover h3 {
    transform: translateX(5px);
    color: #ccd9ae;
}

.training-item h4 {
    color: var(--secondary-dark);
    margin-top: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.training-item ul {
    margin: 1.5rem 0 2rem 1.5rem;
    list-style-type: none;
}

.training-item ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    transition: transform 0.3s var(--animation-timing);
}

.training-item ul li:hover {
    transform: translateX(5px);
}

.training-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccd9ae;
    transition: all 0.3s var(--animation-timing);
}

.training-item ul li:hover::before {
    background-color: #fbbeaa;
    transform: scale(1.5);
}

.training-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(251, 190, 170, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s var(--animation-timing);
}

.training-item:hover .training-details {
    background-color: rgba(251, 190, 170, 0.05);
}

.training-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s var(--animation-timing);
    border-radius: 8px;
    background-color: #ffe8e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.training-option:last-child {
    margin-bottom: 0;
}

.training-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.training-option-name {
    color: var(--dark-color);
    font-weight: 500;
}

.training-option-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.training-option-duration {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.training-option-price {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .training-option {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .training-option-details {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .training-option-duration,
    .training-option-price {
        width: 100%;
    }
}

/* Konsultacje section */
#konsultacje {
    padding: var(--section-padding);
    background-color: #ffe8e0;
    box-shadow: var(--container-shadow);
}

#konsultacje h2 {
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.2s;
}

.consultations-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: #ffe8e0;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.4s;
    border-top: 4px solid #fbbeaa;
}

.consultations-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 217, 174, 0.1), rgba(251, 190, 170, 0.1));
    z-index: -1;
}

.consultations-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.6s;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fbbeaa;
    color: var(--text-color);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.4s var(--animation-timing);
    box-shadow: 0 8px 20px rgba(251, 190, 170, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ccd9ae, #fbbeaa);
    transition: all 0.3s var(--animation-timing);
}

.contact-button:hover {
    background-color: #fbbeaa;
    color: var(--dark-color);
    transform: translateY(-3px) translateX(5px);
    box-shadow: 0 12px 25px rgba(251, 190, 170, 0.6);
    border-color: transparent;
}

.contact-button:hover::before {
    width: 8px;
}



/* Contact section */
#kontakt {
    padding: var(--section-padding);
    background-color: #ffe8e0;
    position: relative;
    overflow: hidden;
}

#kontakt h2 {
    opacity: 0;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.2s;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 2.5rem;
    background-color: #ffe8e0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeInLeft 0.8s var(--animation-timing) forwards;
    animation-delay: 0.4s;
    border-top: 4px solid #fbbeaa;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s var(--animation-timing);
    background-color: #ffe8e0;
}

.contact-item:hover {
    background-color: rgba(251, 190, 170, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 2rem;
    color: #ccd9ae;
    margin-right: 1.5rem;
    transition: transform 0.3s var(--animation-timing);
}

.contact-item:hover i {
    transform: scale(1.1);
    color: #fbbeaa;
}

.contact-item p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    padding: 2.5rem;
    background-color: #ffe8e0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeInRight 0.8s var(--animation-timing) forwards;
    animation-delay: 0.6s;
    border-top: 4px solid #fbbeaa;
}

.form-group {
    margin-bottom: 1.5rem;
    transition: transform 0.3s var(--animation-timing);
}

.form-group:hover {
    transform: translateY(-3px);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s var(--animation-timing);
}

.form-group:hover label {
    color: #ccd9ae;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s var(--animation-timing);
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbeaa;
    box-shadow: 0 0 0 3px rgba(251, 190, 170, 0.2);
    background-color: white;
    transform: scale(1.01);
}

/* Footer */
footer {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 2.5rem 0;
    text-align: center;
}

footer p {
    opacity: 0.9;
    margin: 0;
    animation: fadeIn 0.8s var(--animation-timing);
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left-text"
            "image" 
            "right-text";
        gap: 2rem;
    }

    .about-text-left,
    .about-text-right {
        text-align: center;
        padding: 0;
    }
    
    .about-image {
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
    }
}

/* Animation classes for scroll reveal */
.training-item, .contact-item, .form-group, h2 {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Form group focus state */
.form-group.focused label {
    color: var(--secondary-color);
}

/* Custom scrollbar for a more elegant feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(204, 217, 174, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ccd9ae, #fbbeaa);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Decorative elements */
/* Hero decorative elements have been moved to the header section */

/* Additional transitions for links and interactive elements */
.contact-item i, .menu a, .training-item h3, .tab-button {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Improve tab-content transitions */
.tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor follow image styles */
.cursor-follow-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 450px;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    cursor: pointer;
    transition: transform 0.5s var(--animation-timing);
    margin-bottom: 2rem;
}

.cursor-follow-container:hover {
    transform: translateY(-5px);
}

.cursor-follow-container::after {
    display: none;
}

.cursor-follow-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.cursor-follow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s var(--animation-timing);
    will-change: opacity;
    pointer-events: none;
}

.cursor-follow-img.active {
    opacity: 1;
}

/* Mobile adjustments for the cursor following images */
@media (max-width: 768px) {
    .cursor-follow-container {
        height: auto;
        min-height: 350px;
        margin-bottom: 2rem;
    }
    
    /* On mobile, just show the default image since there's no cursor */
    .cursor-follow-img {
        display: none;
        max-width: 100%;
        height: auto;
        position: relative;
    }
    
    .cursor-follow-img[data-position="1"] {
        display: block;
        opacity: 1;
    }
    
    .cursor-follow-container:hover {
        transform: none;
    }
}

/* Override existing image placeholder styles that are no longer needed */
.image-placeholder {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        gap: 0.5rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s var(--animation-timing);
    }
    
    .menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .menu a {
        padding: 0.75rem;
        display: block;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s var(--animation-timing);
    }
    
    .menu a:hover {
        background-color: rgba(251, 190, 170, 0.1);
        transform: translateX(5px);
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s var(--animation-timing);
    }
    
    .hamburger:hover {
        background-color: rgba(251, 190, 170, 0.1);
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--dark-color);
        margin: 5px 0;
        transition: all 0.3s var(--animation-timing);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "left-text"
            "image" 
            "right-text";
        gap: 2rem;
        text-align: center;
    }

    .about-text-left,
    .about-text-right {
        text-align: center;
        padding: 0;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-content {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .training-option {
        flex-direction: column;
        text-align: center;
    }
    
    .training-option span {
        margin-bottom: 0.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .consultations-content,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .training-item h3,
    .training-item h4 {
        padding-left: 0.5rem;
    }
    
    .training-details {
        padding: 1rem;
    }
    
    .button, 
    .contact-button {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .hero {
        height: 100vh;
        padding: 0;
        width: 100%;
        margin: 0;
        background-size: contain;
    }
    
    .hero .hero-content {
        padding: 0 15px;
    }
    
    /* Adjust animations for mobile */
    .animated {
        animation-duration: 0.6s;
    }
    
    .training-item:nth-child(n) {
        animation-delay: 0.3s;
    }
}

/* Featured box effects */
.featured-box {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.featured-box::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #fbbeaa;
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.4s var(--animation-timing);
}

.featured-box:hover::after {
    transform: scale(5);
    opacity: 0.1;
}

/* Apply featured box to relevant items */
.training-item,
.consultations-content,
.contact-info,
.contact-form {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.training-item::after,
.consultations-content::after,
.contact-info::after,
.contact-form::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.4s var(--animation-timing);
}

.training-item::after {
    background-color: #fbbeaa;
    opacity: 0.1;
}

.consultations-content::after {
    background-color: #ccd9ae;
    opacity: 0.1;
}

.contact-info::after {
    background-color: #fbbeaa;
    opacity: 0.1;
}

.contact-form::after {
    background-color: #ccd9ae;
    opacity: 0.1;
}

.training-item:hover::after,
.consultations-content:hover::after,
.contact-info:hover::after,
.contact-form:hover::after {
    transform: scale(15);
    opacity: 0.05;
}

/* Customize links in cards/items specifically */
.training-item a::after,
.contact-button::after {
    display: none;
} 