/*
 * Main Stylesheet for Marta Siedlecka Portfolio
 * Author: Marta Siedlecka
 * Version: 1.0
 */

/* ====== VARIABLES ====== */
:root {
    --dark-blue: #222A4F;
    --dark-purple: #5B085E;
    --light-gray: #E3DFE7;
    --bright-purple: #AA29E0;
    --white: #FFFFFF;
    --black: #000000;
    --transition-speed: 0.3s;
    --border-radius: 10px;
    --section-padding: 6rem 0;
    --container-padding: 0 2rem;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

button,
input,
textarea {
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* ====== UTILITY CLASSES ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

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

/* Hide content visually but keep it accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.active {
    animation: fadeInUp 0.8s forwards;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    background-color: rgba(227, 223, 231, 0.9);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-purple);
    text-decoration: none;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--bright-purple);
}

.nav-menu {
    display: flex;
}

.nav-menu-item {
    margin-left: 2rem;
}

.nav-menu-link {
    color: var(--dark-blue);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-menu-link:hover {
    color: var(--bright-purple);
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bright-purple);
    transition: width var(--transition-speed);
}

.nav-menu-link:hover::after {
    width: 100%;
}

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

/* ====== HERO SECTION ====== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed), color var(--transition-speed);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(170, 41, 224, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(34, 42, 79, 0.2);
    transform: translateY(-3px);
}

/* ====== BACKGROUND SHAPES ====== */
.shape {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(170, 41, 224, 0.2);
    top: 20%;
    right: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(91, 8, 94, 0.15);
    bottom: 10%;
    left: -50px;
}

/* ====== SECTION COMPONENTS ====== */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-blue);
    opacity: 0.8;
}

/* ====== ABOUT SECTION ====== */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ====== STATS ====== */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    margin: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--dark-blue);
    opacity: 0.8;
}

/* ====== SERVICES SECTION ====== */
.services {
    background-color: var(--light-gray);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--bright-purple);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* ====== PROJECTS SECTION ====== */
.projects {
    background-color: var(--white);
}

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

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(34, 42, 79, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ====== CLIENTS SECTION ====== */
.clients {
    background-color: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.client-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--light-gray);
    opacity: 0.8;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.client-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
}

/* ====== MEDIA SECTION ====== */
.media {
    background-color: var(--white);
}

.media-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.media-tab {
    padding: 0.8rem 2rem;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    margin: 0 0.5rem;
    border-radius: 30px;
}

.media-tab.active {
    background-color: var(--bright-purple);
    color: var(--white);
}

.media-content {
    display: none;
}

.media-content.active {
    display: block;
}

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

.media-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.media-card-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.media-card-content {
    padding: 1.5rem;
}

.media-card-date {
    font-size: 0.9rem;
    color: var(--bright-purple);
    margin-bottom: 0.5rem;
}

.media-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.media-card-source {
    font-size: 0.9rem;
    color: var(--dark-blue);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.media-card-link {
    display: inline-block;
    color: var(--bright-purple);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.media-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bright-purple);
    transition: width var(--transition-speed);
}

.media-card-link:hover::after {
    width: 100%;
}

/* ====== PARALLAX SECTION ====== */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 42, 79, 0.7);
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.parallax-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ====== CONTACT SECTION ====== */
.contact {
    background-color: var(--dark-blue);
    color: var(--white);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--bright-purple);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: outline var(--transition-speed);
}

.form-control:focus {
    outline: 2px solid var(--bright-purple);
}

.form-control::placeholder {
    color: var(--light-gray);
    opacity: 0.7;
}

.form-submit {
    background-color: var(--bright-purple);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(170, 41, 224, 0.3);
}

/* ====== FOOTER ====== */
.footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--bright-purple);
}

.footer-text {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--bright-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-link:hover {
    background-color: var(--bright-purple);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .parallax-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed);
        z-index: 1001;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu-item {
        margin: 0 0 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text {
        margin-bottom: 2rem;
    }

    .about-image {
        height: auto;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-item {
        min-width: 100px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .media-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .media-tab {
        width: 80%;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .header,
    .footer,
    .parallax,
    .contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .about-content,
    .contact-wrapper {
        display: block;
    }

    .about-image {
        margin: 2rem auto;
    }

    @page {
        margin: 2cm;
    }
}