/* =============================================================================
   PORTFOLIOSTUDENTA.PL - MAIN STYLESHEET
   ============================================================================= */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* === CONTAINER & UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === BUTTON COMPONENTS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background: #0f172a;
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.btn-secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* === TEXT UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, #475569, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === HEADER & NAVIGATION === */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    text-decoration: none;
}

.logo i {
    width: 2rem;
    height: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0f172a;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
}

/* === HERO SECTION === */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.hero-badge i {
    width: 1rem;
    height: 1rem;
    color: #475569;
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 500;
}

.benefit i {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
}

.testimonial-float {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star {
    color: #fbbf24;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.testimonial-float p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.testimonial-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a !important;
    margin-bottom: 0 !important;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
  text-align: center;        /* wyśrodkowanie */
  margin-top: 60px;          /* odstęp od treści powyżej */
  padding: 30px 20px;        /* trochę przestrzeni wewnątrz */
  border-top: 1px solid #e5e7eb; /* delikatna linia oddzielająca */
  color: #374151;            /* neutralny ciemny szary */
}

.section-footer h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #111827;            /* ciemniejszy, wyróżniający nagłówek */
}

.section-footer p {
  font-size: 1rem;
  max-width: 700px;          /* zawężenie treści dla lepszej czytelności */
  margin: 0 auto;            /* wyśrodkowanie akapitu */
  line-height: 1.6;
}

/* === TEMPLATES SECTION === */
.templates {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.template-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.template-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-preview img {
    transform: scale(1.05);
}

.template-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.gradient-elegance {
    background: linear-gradient(135deg, #475569, #0f172a);
}

.gradient-creative {
    background: linear-gradient(135deg, #9333ea, #ec4899);
}

.gradient-tech {
    background: linear-gradient(135deg, #0369a1, #0891b2);
}

.template-name {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.demo-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: white;
    transform: scale(1.05);
}

.template-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.template-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.template-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
}

.template-features i {
    color: #059669;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* === PRICING SECTION === */
.pricing {
    padding: 5rem 0;
    background: white;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.toggle-container {
    display: flex;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.25rem;
    position: relative;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn.active {
    background: #0f172a;
    color: white;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.toggle-btn:not(.active) {
    color: #64748b;
}

.savings-badge {
    background: #059669;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid #0f172a;
    background: linear-gradient(135deg, #f8fafc, white);
    transform: scale(1.05);
}

.pricing-card:not(.featured):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
}

.period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.price-note {
    color: #64748b;
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

.pricing-features i {
    color: #059669;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.pricing-cta {
    margin-top: auto;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.trust-item i {
    width: 1.25rem;
    height: 1.25rem;
}

/* === FAQ SECTION === */
.faq {
    padding: 5rem 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.faq-answer {
    color: #64748b;
    line-height: 1.6;
}

/* === CTA SECTION === */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.email-cta {
    background: white;
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.cta-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* === FOOTER === */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info {
    text-align: right;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.modal iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.mobile-open {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .testimonial-float {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 1rem;
    }

    /* Templates */
    .templates-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
        grid-column: auto;
        max-width: none;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    /* Modal */
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .modal iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .header,
    .modal,
    .cta {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .pricing-card {
        break-inside: avoid;
    }
}