/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm color palette */
    --primary-warm: #D4A574;
    --secondary-warm: #E8C4A0;
    --accent-warm: #B8956A;
    --deep-warm: #8B6F47;
    --light-warm: #F5F0E8;
    --cream: #FAF7F2;
    --soft-brown: #6B5B73;
    --text-dark: #3A3A3A;
    --text-light: #666666;
    
    /* Typography - Mobile First */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;
    
    /* Mobile spacing */
    --section-padding: 40px 0;
    --container-padding: 0 16px;
    --max-width: 1200px;
}

/* Mobile-first base styles */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Mobile Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--deep-warm);
    position: relative;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-warm), var(--accent-warm));
}

/* Mobile Navigation */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    background: linear-gradient(135deg, var(--light-warm) 0%, var(--secondary-warm) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 16px;
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo svg {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.1);
}

/* Mobile Navigation Menu */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--deep-warm);
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navigation ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--cream);
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.navigation ul.active {
    right: 0;
}

.navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 20px;
}

.navigation a:hover {
    color: var(--primary-warm);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--primary-warm);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: calc(100% - 40px);
}

/* Mobile Hero Section */
.hero-content {
    margin-top: 60px;
    max-width: 100%;
    padding: 0 16px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-warm);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--accent-warm);
    margin-bottom: 20px;
    font-style: italic;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 100%;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--accent-warm);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--accent-warm);
    border-bottom: 2px solid var(--accent-warm);
    transform: rotate(45deg);
    margin: 8px auto 0;
}

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

/* Mobile Sections */
.section {
    padding: var(--section-padding);
}

.section:nth-child(even) {
    background-color: var(--light-warm);
}

/* Mobile About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.about-text .lead {
    font-size: 1.1rem;
    color: var(--primary-warm);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-warm), var(--primary-warm));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-warm);
    font-style: italic;
    box-shadow: 0 15px 30px rgba(180, 149, 106, 0.2);
    font-size: 14px;
}

/* Mobile Skills Section */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(180, 149, 106, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(180, 149, 106, 0.2);
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--deep-warm);
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 15px;
}

/* Mobile Portfolio Section */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(180, 149, 106, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.portfolio-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary-warm), var(--primary-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-warm);
    font-style: italic;
    font-size: 14px;
}

.portfolio-item h3 {
    padding: 20px 20px 8px;
    color: var(--deep-warm);
    font-size: 1.1rem;
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 14px;
}

/* Mobile Contact Section */
.contact-content-simple {
    display: flex;
    justify-content: center;
}

.contact-info-centered {
    max-width: 500px;
    text-align: center;
}

.contact-info-centered h3 {
    font-size: 1.4rem;
    color: var(--deep-warm);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-method strong {
    color: var(--deep-warm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-method a,
.contact-method .email-protected {
    color: var(--primary-warm);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.contact-method a:hover,
.contact-method .email-protected:hover {
    color: var(--accent-warm);
}

.email-protected {
    display: inline-block;
    position: relative;
}

.email-protected::after {
    content: " (kliknij aby skopiować)";
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}


/* Mobile Footer */
.footer {
    background: var(--deep-warm);
    color: var(--light-warm);
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 24px;
    }
    
    body {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Tablet Navigation */
    .nav-toggle {
        display: none;
    }
    
    .navigation ul {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        box-shadow: none;
        right: 0;
    }
    
    .navigation a {
        font-size: 16px;
        padding: 5px 0;
    }
    
    .navigation a::after {
        left: 0;
        width: 0;
    }
    
    .navigation a:hover::after {
        width: 100%;
    }
    
    /* Tablet About Section */
    .about-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        align-items: center;
        text-align: left;
    }
    
    .about-text .lead {
        font-size: 1.2rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 320px;
    }
    
    /* Tablet Skills */
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .skill-card {
        padding: 30px 25px;
    }
    
    /* Tablet Contact */
    .contact-info-centered h3 {
        font-size: 1.6rem;
    }
    
    .contact-description {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .contact-methods {
        gap: 25px;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 32px;
    }
    
    body {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .section-title::after {
        width: 60px;
        bottom: -15px;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .navigation {
        padding: 20px 0;
    }
    
    .navigation ul {
        gap: 40px;
    }
    
    .logo svg {
        width: 50px;
        height: 50px;
    }
    
    .about-text .lead {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .about-text p {
        margin-bottom: 20px;
    }
    
    .image-placeholder {
        width: 300px;
        height: 400px;
        border-radius: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .skill-card {
        padding: 40px 30px;
    }
    
    .skill-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .contact-info-centered h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .contact-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .contact-methods {
        gap: 25px;
    }
    
    .contact-method a,
    .contact-method .email-protected {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 30px 0;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-content {
        max-width: 800px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-warm);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-warm);
    border-radius: 3px;
}

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

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .skill-card:hover,
    .portfolio-item:hover,
    .submit-btn:hover {
        transform: none;
    }
    
    .navigation a:hover::after {
        width: 0;
    }
    
    .logo:hover svg {
        transform: none;
    }
}