/* ==========================================================================
   ROZWIĄZANIA WEBOWE - Custom Styles
   ========================================================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Brand Colors */
:root {
    --primary: #373F51;   /* Główny – głęboki granat / charcoal blue */
    --accent:  #58A4B0;   /* Akcent – świeży tech blue */
    --bg: #f1f3f4;  /* Tło główne – jasny alabaster */
    --surface:  #A9BCD0;  /* Sekcje / karty – powder blue */
    --text:     #1B1B1E;  /* Tekst – carbon black */
    --muted:    #6B7280;  /* Tekst pomocniczy */

    /*--primary: #04080F;   !* Ink Black – główny, header, footer *!*/
    /*--accent:  #507DBC;   !* Glaucous – CTA, linki, akcenty *!*/
    /*--bg: #edf2f3;  !* Alabaster Grey – tło główne *!*/
    /*--surface:  #BBD1EA;  !* Pale Sky – karty, sekcje *!*/
    /*--soft:     #A1C6EA;  !* Powder Blue – hover, highlights *!*/
    /*--text:     #04080F;  !* Tekst główny *!*/
    /*--muted:    #5F6C7B;  !* Tekst pomocniczy (auto zbalansowany) *!*/

    /*--primary: #1B1B1E;   !* Główny – Carbon Black (teraz to on dominuje) *!*/
    /*--accent:  #FAA916;   !* Akcent – Orange (jaskrawy detal, np. ikona lub border) *!*/
    /*--bg:      #FBFFFE;   !* Tło główne – Czysta biel ze zdjęcia *!*/
    /*--surface: #D8DBE2;   !* Sekcje / karty – Jasny szary (odcień ze zdjęcia) *!*/
    /*--text:    #1B1B1E;   !* Tekst – Carbon Black *!*/
    /*--muted:   #6D676E;   !* Tekst pomocniczy – Dim Grey *!*/


    /* Font Sizes */
    --font-size-p: 16px;     /* Paragraf */
    --font-size-a: 14px;     /* Link */
    --font-size-h1: 52px;    /* Nagłówek H1 */
    --font-size-h2: 32px;    /* Nagłówek H2 */
    --font-size-h3: 24px;    /* Nagłówek H3 */
    --font-size-h4: 18px;    /* Nagłówek H4 */
}

/* ==========================================================================
   Global Overrides
   ========================================================================== */

/* Wider containers for all sections */
.container.grid-xl {
    max-width: 1140px !important;
}

.container.grid-lg {
    max-width: 1140px !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

p {
    font-size: var(--font-size-p);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary);
    font-weight: 700;
    margin: 1rem;
}

h1 {
    font-size: var(--font-size-h1);
    margin: 0rem;
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

a {
    color: var(--accent);
    font-size: var(--font-size-a);
    transition: all 0.3s ease;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

/* Header */
#header {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Override theme.min.css #header a color */
#header a {
    color: var(--bg) !important;
}

/* Navigation links */
#header .navbar .navigation a,
#header .dropmenu ul li a {
    color: var(--bg) !important;
    transition: all 0.3s ease;
}

#header .navbar .navigation a:hover,
#header .dropmenu ul li a:hover {
    color: var(--surface) !important;
}

#header .navbar .navigation a.active,
#header .dropmenu ul li a.active {
    /*color: var(--surface) !important;*/
    font-weight: 600;
}

#header .dropmenu ul li a:focus {
    color: var(--subtle) !important;
}

/* Site Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.site-logo__mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.site-logo__mark i {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 400;
    margin: 0;
    -webkit-text-stroke: 0.5px #ffffff;
}

.site-logo:hover .site-logo__mark {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(88, 164, 176, 0.4);
}

.site-logo__text {
    line-height: 1.2;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.3px;
}

.site-logo__word {
    display: block;
}

@media (min-width: 768px) {
    .site-logo__text {
        font-size: 18px;
        white-space: nowrap;
    }

    .site-logo__word {
        display: inline;
    }
}

#header .navbar .logo a,
#header .logo a {
    color: var(--bg) !important;
    transition: all 0.3s ease;
}

#header .navbar .logo a:hover,
#header .logo a:hover {
    color: var(--subtle) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
a.button,
.btn {
    background: var(--accent);
    color: var(--bg);
    border: 2px solid var(--accent);
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.button:hover,
a.button:hover,
.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 179, 193, 0.3);
}

.button-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--bg);
    border: 2px solid var(--primary);
}

.button-primary:visited {
    color: var(--bg);

}

.button-primary:hover {
    background: color-mix(in srgb, var(--primary) 90%, white 10%);
    border-color: color-mix(in srgb, var(--primary) 90%, white 10%);
    box-shadow: 0 6px 16px rgba(49, 86, 95, 0.25);
    transform: translateY(-2px);
    color: var(--bg);

}


/* ==========================================================================
   Moja Oferta Section (Custom Services Grid)
   ========================================================================== */

.modular-offer {
    padding: 60px 20px;
    background: #f8f9fb;
}

/* Header */
.offer__header {
    text-align: center;
    margin-bottom: 60px;
}

.offer__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.offer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

.offer__subtitle {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.offer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

/* Service Card */
.offer-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(49, 86, 95, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border: 2px solid transparent;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(49, 86, 95, 0.15);
    border-color: var(--accent);
}

/* Icon */
.offer-card__icon {
    margin-bottom: 4px;
}

.offer-card__icon i {
    color: var(--accent);
    font-size: 40px;
    transition: all 0.3s ease;
}

.offer-card:hover .offer-card__icon i {
    transform: scale(1.15);
    color: var(--primary);
}

/* Title */
.offer-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

/* Description */
.offer-card__description {
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-card {
        padding: 40px 32px;
    }
}

/* Desktop: 2 columns with max-width */
@media (min-width: 1024px) {
    .offer__grid {
        gap: 32px;
        max-width: 1140px;
    }

    .offer-card {
        padding: 48px 36px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.modular-hero {
    background: #ffffff;
    padding: 140px 20px 50px;
    min-height: auto;
}

/* Hero Container */
.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Text Side */
.hero-text {
    flex: 1;
}

/* Headline (H1) */
.hero-headline {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 32px;
}

.title-h1h2 h1 {
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* Subheadline */
.hero-subheadline {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
}

/* Social Proof */
.hero-social-proof {
    font-size: 0.9375rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 48px;
}

/* Buttons Container */
.hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

/* Button Base */
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 240px;
    text-align: center;
    flex: 1 1 auto;
}

/* Primary Button */
.hero-button--primary {
    background: var(--primary);
    color: var(--bg);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(55, 63, 81, 0.3);
}


.hero-button--primary:visited {
    color: var(--bg);
}
.hero-button--primary:hover {
    background: color-mix(in srgb, var(--primary) 90%, white 10%);
    border-color: color-mix(in srgb, var(--primary) 90%, white 10%);
    color: var(--bg);
    box-shadow: 0 6px 16px rgba(49, 86, 95, 0.25);
    transform: translateY(-2px);
}



a:hover {
    text-decoration: none;
}

/* Secondary Button */
.hero-button--secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.hero-button--secondary:visited {
    color: var(--primary);
}

.hero-button--secondary:hover {
    background: color-mix(in srgb, var(--bg) 90%, black 10%);
    box-shadow: 0 6px 16px rgba(49, 86, 95, 0.25);
    transform: translateY(-2px);
}

/* Image Side */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.hero-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Tablet */
@media (min-width: 768px) {
    .modular-hero {
        padding: 140px 40px 50px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .hero-text {
        flex: 1.1;
        text-align: left;
    }

    .hero-image {
        flex: 0.9;
        order: 1;
    }

    .hero-headline {
        margin-bottom: 40px;
    }

    .hero-subheadline {
        /*font-size: 1rem;*/
    }

    .hero-social-proof {
        /*font-size: 0.9375rem;*/
    }

    .hero-illustration {
        max-width: 500px;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-button {
        min-width: auto;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .modular-hero {
        padding: 150px 60px 60px;
        min-height: auto;
    }

    .hero-container {
        gap: 80px;
    }

    .hero-text {
        flex: 1.2;
    }

    .hero-image {
        flex: 0.8;
    }

    .hero-headline {
        margin-bottom: 48px;
    }

    .hero-subheadline {
        margin-bottom: 32px;
    }

    .hero-social-proof {
        margin-bottom: 56px;
    }

    .hero-illustration {
        max-width: 560px;
    }

    .hero-button {
        padding: 18px 48px;
    }
}

/* ==========================================================================
   Stats / Achievements Section
   ========================================================================== */

.modular-stats {
    background: var(--primary);
    color: var(--bg);
    padding: 80px 20px;
}

/* Optional Heading */
.stats-heading {
    font-weight: 700;
    color: var(--bg);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Stat Card */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(95, 179, 193, 0.2);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Icon */
.stat-card__icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card__icon {
    transform: scale(1.15) rotate(5deg);
    background: var(--bg);
}

.stat-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card__icon svg {
    color: var(--accent);
}

/* Content */
.stat-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card__text {
    font-weight: 600;
    color: var(--bg);
    line-height: 1.4;
}

.stat-card__subtext {
    color: var(--accent);
    line-height: 1.6;
    opacity: 0.95;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .modular-stats {
        padding: 80px 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stat-card {
        padding: 36px 28px;
    }

    .stat-card__icon {
        width: 64px;
        height: 64px;
    }

    .stat-card__icon svg {
        width: 32px;
        height: 32px;
    }

    .stat-card__text {
        /*font-size: 1rem;*/
    }

    .stat-card__subtext {
        /*font-size: 0.9375rem;*/
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .modular-stats {
        padding: 100px 60px;
    }

    .stats-heading {
        margin-bottom: 80px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .stat-card {
        padding: 40px 32px;
    }

    .stat-card__icon {
        width: 72px;
        height: 72px;
    }

    .stat-card__icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Features / Services Section
   ========================================================================== */

.modular-features {
    padding: 100px 0;
    background: var(--bg);
}

.modular-features h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.title-center h1 {
    text-align: left;
}

.modular-features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.modular-features > .container > p {
    text-align: center;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.modular-features .columns {
    margin-top: 60px;
}

.feature {
    padding: 50px 35px;
    background: var(--subtle);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
    text-align: center;
    box-shadow: 0 4px 12px rgba(49, 86, 95, 0.08);
}

.feature:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(49, 86, 95, 0.2);
    border-color: var(--accent);
    background: var(--bg);
}

.feature i {
    color: var(--accent);
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: scale(1.1);
    color: var(--primary);
}

.feature h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.feature p {
    color: var(--text);
    opacity: 0.85;
    text-align: left;
    line-height: 1.7;
}

/* ==========================================================================
   Case Studies / Projects Section
   ========================================================================== */

.modular-text {
    padding: 80px 0;
    background: var(--bg);
}

.modular-text h2 {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.modular-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.modular-text h3 {
    color: var(--primary);
    margin-top: 50px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--subtle);
}

.modular-text h3:first-of-type {
    margin-top: 0;
}

.modular-text strong {
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

.modular-text hr {
    border: none;
    border-top: 2px solid var(--subtle);
    margin: 60px 0;
}

.modular-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Stack / Technologies Section
   ========================================================================== */

#technologie.modular-text {
    background: var(--subtle);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin: 60px 0 40px;
    padding: 0;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 25px;
    background: var(--bg);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(49, 86, 95, 0.08);
}

.stack-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(95, 179, 193, 0.25);
}

.stack-item i {
    color: var(--primary);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stack-item:hover i {
    color: var(--accent);
    transform: scale(1.15);
}

.stack-item span {
    color: var(--text);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Wybrane Realizacje (Projects Section)
   ========================================================================== */

.modular-projects {
    padding: 60px 20px;
    background: #ffffff;
}

/* Header */
.projects__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.projects__title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.projects__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

.projects__subtitle {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

/* Projects List */
.projects__list {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Single Project */
.project {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: transparent;
}

/* Project Image */
.project__image {
    width: 100%;
    position: relative;
}

/* Project Gallery */
.project__gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project__gallery-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.project__gallery-main:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

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

.project__gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.project__gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project__gallery-thumb:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}

/* Lightbox cursor */
.project__gallery-img[data-lightbox] {
    cursor: zoom-in;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.is-active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.project__placeholder {
    aspect-ratio: 4/3;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(49, 86, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project__icon {
    width: 64px;
    height: 64px;
    color: white;
    opacity: 0.9;
    z-index: 1;
}

/* Project Content */
.project__content {
    width: 100%;
}

.project__badge {
    display: inline-block;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.project__title {
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.project__industry {
    color: var(--primary);
    margin: 0 0 16px 0;
    font-weight: 500;
}

.project__description {
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 24px 0;
}

.project__subheading {
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 12px 0;
}

.project__text {
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 16px 0;
}

/* Project List */
.project__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project__list-item {
    line-height: 1.8;
    color: var(--text);
    padding-left: 28px;
    position: relative;
}

.project__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Technologies */
.project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project__tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #E8F4F6;
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.project__tech-badge:hover {
    border-color: var(--accent);
    background: var(--subtle);
}

/* Project Link */
.project__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
    padding: 6px 12px;
}

.project__link:hover {
    color: var(--primary);
    gap: 12px;
}

.project__link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.project__arrow {
    transition: transform 0.3s ease;
}

.project__link:hover .project__arrow {
    transform: translateX(4px);
}

/* Tablet: Side by side layout */
@media (min-width: 768px) {
    .modular-projects {
        /*padding: 80px 40px;*/
    }

    .project {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .project__image {
        width: 45%;
        flex-shrink: 0;
        order: 0;
    }

    .project__content {
        width: 55%;
        order: 0;
    }

    /* Reverse layout for even projects */
    .project--reverse {
        flex-direction: row-reverse;
    }

    .project__title {
        /*font-size: 1.625rem;*/
    }
}

/* Desktop: Wider layout */
@media (min-width: 1024px) {
    .modular-projects {
        /*padding: 100px 60px;*/
    }

    .projects__title {
    }

    .projects__subtitle {
        /*font-size: 1rem;*/
    }

    .project {
        gap: 60px;
    }

    .project__image {
        width: 40%;
    }

    .project__content {
        width: 60%;
    }

    .project__title {
        /*font-size: 1.75rem;*/
    }

    .project__description,
    .project__text {
        /*font-size: 1.0625rem;*/
    }
}

/* ==========================================================================
   Dlaczego warto ze mną pracować (Benefits Section)
   ========================================================================== */

.modular-benefits {
    padding: 60px 20px;
    background: #f0f4f8;
}

/* Header */
.benefits__header {
    text-align: center;
    margin-bottom: 60px;
}

.benefits__title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.benefits__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

/* Benefits Grid */
.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Benefit Row */
.benefit-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(49, 86, 95, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border: 2px solid transparent;
}

.benefit-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(49, 86, 95, 0.15);
    border-color: var(--accent);
}

/* Icon */
.benefit-row__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-row:hover .benefit-row__icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(88, 164, 176, 0.3);
}

.benefit-row__icon svg {
    width: 26px;
    height: 26px;
    color: #FFFFFF;
    stroke-width: 2;
}

/* Text */
.benefit-row__text {
    flex: 1;
    min-width: 0;
}

.benefit-row__title {
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.benefit-row__description {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .benefit-row {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        padding: 32px 28px;
    }
}

/* Desktop: 2 columns wider */
@media (min-width: 1024px) {
    .benefits__grid {
        gap: 28px;
    }

    .benefit-row {
        padding: 36px 32px;
        gap: 24px;
    }
}

/* ==========================================================================
   Testimonials / Opinie Section (Carousel)
   ========================================================================== */

.modular-testimonials {
    padding: 60px 20px;
    background: #ffffff;
}

/* Header */
.testimonials__header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials__title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.testimonials__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

/* Splide container */
.testimonials-splide {
    max-width: 1140px;
    margin: 0 auto;
}

/* Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(49, 86, 95, 0.08);
    border: 1px solid rgba(49, 86, 95, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(49, 86, 95, 0.15);
    border-color: var(--accent);
}

/* Splide slide height */
.testimonials-splide .splide__slide {
    height: auto;
}

/* Hide default arrow/pagination positions */
.testimonials-splide .splide__arrows {
    display: none;
}

.testimonials-splide .splide__pagination {
    display: none;
}

/* Custom nav bar: ← • • • → */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

.testimonials-nav__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.testimonials-nav__btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.testimonials-nav__btn svg {
    width: 16px;
    height: 16px;
}

.testimonials-nav__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    opacity: 0.2;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonials-nav__dot.is-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Stars */
.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: #F59E0B;
}

.testimonial-card__stars svg {
    width: 14px;
    height: 14px;
}

/* Quote text */
.testimonial-card__text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    font-style: italic;
    opacity: 0.85;
}

/* Author */
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.testimonial-card__avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
    line-height: 1.3;
}

.testimonial-card__role {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================================================
   O mnie (About Section)
   ========================================================================== */

.modular-about {
    padding: 60px 20px;
    background: #f8f9fb;
}

/* Heading - Above container */
.about-heading {
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

/* Container for image and content */
.about-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Image Placeholder */
.about-image {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    width: 40%;
}

.about-image svg {
    height: 380px;
}

.about-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(49, 86, 95, 0.2);
    transition: all 0.3s ease;
}

.about-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(49, 86, 95, 0.3);
}

.about-icon {
    width: 64px;
    height: 64px;
    color: white;
    opacity: 0.95;
}

/* Content Wrapper */
.about-content-wrapper {
    flex: 1;
}

/* Content Area */
.about-content {
    margin-bottom: 40px;
}

/* Paragraphs */
.about-text {
    line-height: 1.8;
    color: var(--text);
    text-align: left;
    margin-bottom: 24px;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Bold text within paragraphs */
.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Tech Stack Section */
.tech-stack-section {
    margin-top: 48px;
}

.tech-stack-heading {
    font-weight: 700;
    color: var(--primary);
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.4;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-stack-line {
    line-height: 1.8;
    color: var(--text);
    text-align: left;
}

.tech-category {
    font-weight: 600;
    color: var(--primary);
}

/* Tablet: Side by side layout */
@media (min-width: 768px) {
    .modular-about {
        /*padding: 80px 40px;*/
    }

    .about-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .about-image {
        justify-content: flex-start;
    }

    .about-placeholder {
        width: 180px;
        height: 180px;
    }

    .about-icon {
        width: 80px;
        height: 80px;
    }

    .about-text {
        /*font-size: 1rem;*/
    }

    .tech-stack-heading {
        /*font-size: 1rem;*/
    }

    .tech-stack-line {
        /*font-size: 1.0625rem;*/
    }
}

/* Desktop: Larger spacing and text */
@media (min-width: 1024px) {
    .modular-about {
        /*padding: 100px 60px;*/
    }

    .about-container {
        gap: 64px;
    }

    .about-placeholder {
        width: 200px;
        height: 200px;
    }

    .about-icon {
        width: 90px;
        height: 90px;
    }

    .about-heading {
        margin-bottom: 48px;
    }

    .about-text {
        /*font-size: 1rem;*/
    }

    .tech-stack-heading {
        /*font-size: 1.625rem;*/
    }

    .tech-stack-line {
        /*font-size: 1rem;*/
    }
}

/* ==========================================================================
   Why Work With Me Section
   ========================================================================== */

#dlaczego.modular-features {
    background: linear-gradient(135deg, var(--subtle) 0%, var(--bg) 100%);
    padding: 100px 0;
}

#dlaczego .feature {
    background: var(--bg);
    box-shadow: 0 4px 15px rgba(49, 86, 95, 0.1);
}

#dlaczego .feature:hover {
    background: var(--subtle);
}

#dlaczego .feature i {
    color: var(--primary);
}

#dlaczego .feature:hover i {
    color: var(--accent);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.modular-contact {
    padding: 60px 20px;
    background: #f0f4f8;
}

/* Container */
.contact-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Main Heading */
.contact-heading {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 60px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}

.contact-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

/* Split Content: Text | Contact Info */
.contact-split {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.contact-text-side {
    flex: 1;
}

.contact-data-side {
    flex: 1;
}

/* Intro Text */
.contact-intro {
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
    text-align: left;
}

/* Response Time */
.contact-response-time {
    color: var(--primary);
    font-weight: 500;
    text-align: left;
}

/* Separator */
.contact-separator {
    display: none;
}

/* Contact Info List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(49, 86, 95, 0.1);
    transition: all 0.3s ease;
}

.contact-list-item:last-child {
    border-bottom: none;
}

.contact-list-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-list-item:hover .contact-list-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(88, 164, 176, 0.3);
}

.contact-list-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-list-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-list-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.contact-list-value {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--font-size-p);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-list-value:hover {
    color: var(--accent);
}

.contact-list-sub {
    color: var(--muted);
    font-size: 13px;
}

/* Next Steps Heading */
.contact-next-steps-heading {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.contact-next-steps-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
    border-radius: 2px;
}

/* Steps */
.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.contact-step {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(49, 86, 95, 0.08);
}

.contact-step:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(49, 86, 95, 0.15);
}

.contact-step-number {
    font-weight: 700;
    color: var(--bg);
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(95, 179, 193, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-size: var(--font-size-h4);
}

.contact-step:hover .contact-step-number {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.15);
}

.contact-step-content {
    width: 100%;
}

.contact-step-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.contact-step-description {
    line-height: 1.7;
    color: var(--text);
    opacity: 0.85;
}

/* Contact CTA */
.contact-cta {
    margin-top: 60px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: 0 4px 20px rgba(49, 86, 95, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-cta:hover {
    border-color: var(--accent);
}

.contact-cta__text {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.contact-cta__subtext {
    color: var(--muted);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.contact-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-cta {
        padding: 56px 48px;
    }

    .contact-cta__buttons {
        flex-direction: row;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .modular-contact {
        /*padding: 80px 40px;*/
    }

    .contact-heading {
        margin-bottom: 64px;
    }

    /* Split Layout: side by side */
    .contact-split {
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }

    .contact-text-side {
        flex: 0.9;
    }

    .contact-data-side {
        flex: 1.1;
    }

    .contact-intro {
        /*font-size: 1rem;*/
    }

    /* Steps in a row */
    .contact-steps {
        flex-direction: row;
        gap: 24px;
    }

    .contact-step {
        flex: 1;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .modular-contact {
        /*padding: 100px 60px;*/
    }

    .contact-container {
        max-width: 1140px;
    }

    .contact-heading {
        margin-bottom: 80px;
    }

    .contact-split {
        gap: 80px;
        margin-bottom: 60px;
    }

    .contact-intro {
        margin-bottom: 32px;
    }

    .contact-response-time {
        /*font-size: 1rem;*/
    }

    .contact-list-value {
        /*font-size: 1rem;*/
    }

    .contact-next-steps-heading {
        margin-bottom: 56px;
    }

    .contact-steps {
        gap: 32px;
    }

    .contact-step {
        padding: 40px 28px;
    }

    .contact-step-number {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }

    .contact-step-title {
        margin-bottom: 16px;
    }

    .contact-step-description {
        /*font-size: 1rem;*/
    }

    .contact-disclaimer {
        /*font-size: 1.0625rem;*/
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    background: var(--primary);
    color: var(--bg);
    padding: 60px 20px 30px;
    text-align: left;
}

/* Footer Content - 3 columns */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    flex: 1;
}

.footer-heading {
    color: var(--subtle);
    font-size: var(--font-size-a);
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: var(--bg);
    margin: 0 0 6px 0;
    line-height: 1.6;
    font-size: 13px;
}

.footer-text a {
    color: var(--subtle) !important;
}

.footer-text a:hover {
    text-decoration: underline !important;
}

.footer-text:last-child {
    margin-bottom: 0;
}

#footer a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: inherit;
}

#footer a:hover {
    color: var(--bg);
}

/* Footer Copyright */
.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: var(--subtle);
    opacity: 0.8;
    margin: 0;
    font-size: 12px;
}

/* Tablet: 3 columns side by side */
@media (min-width: 768px) {
    #footer {
        padding-block: 40px;
    }

    .footer-content {
        flex-direction: row;
        gap: 60px;
    }
}

/* Desktop: More spacing */
@media (min-width: 1024px) {
    #footer {
        padding-block: 50px;
    }

    .footer-content {
        gap: 80px;
    }
}

/* ==========================================================================
   Privacy Policy & Terms Page
   ========================================================================== */

.page-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.4rem;
}

.page-content h1 {
    color: var(--primary);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.page-content h2 {
    color: var(--primary);
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--subtle);
}

.page-content h3 {
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.page-content li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-content strong {
    color: var(--primary);
    font-weight: 600;
}

.page-content hr {
    border: none;
    border-top: 2px solid var(--subtle);
    margin: 48px 0;
}

/* Responsive */
/*@media (min-width: 768px) {*/
/*    .page-content {*/
/*        padding: 100px 40px;*/
/*    }*/
/*}*/

/*@media (min-width: 1024px) {*/
/*    .page-content {*/
/*        padding: 120px 60px;*/
/*    }*/
/*}*/

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 960px) {
    .stat-number {
        /*font-size: 2rem;*/
    }

    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .modular-hero {
        padding: 80px 0 60px;
    }

    .modular-hero h2 {
    }

    .modular-hero p {
    }

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

    .stat-label {
        /*font-size: 0.85rem;*/
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stack-item {
        padding: 20px 15px;
    }

    .stack-item i {
        /*font-size: 2rem !important;*/
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.section {
    position: relative;
}

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

/* Focus states for accessibility */
.hero-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Selection Color */
::selection {
    background: var(--accent);
    color: var(--bg);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg);
}


/* ==========================================================================
   Mobile Menu Styling
   ========================================================================== */

/* Hamburger button */
.mobile-menu .button_container span {
    background: var(--bg);
    border-radius: 2px;
}

.mobile-menu .button_container:hover span {
    background: var(--subtle);
}

/* Overlay background */
.overlay {
    background: var(--primary) !important;
    opacity: 0 !important;
}

.overlay.open {
    opacity: 0.98 !important;
    backdrop-filter: blur(10px);
}

/* Menu container */
.overlay-menu {
    padding-top: 80px;
}

/* Menu list styling */
.treemenu.treemenu-root {
    margin: 2rem 1.5rem;
}

.treemenu li {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.treemenu li:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent);
}

.treemenu li a {
    color: var(--bg) !important;
    padding: 16px 20px !important;
    margin-left: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
}

.treemenu li a:hover,
.treemenu li a:focus {
    color: var(--accent) !important;
    padding-left: 28px !important;
}

.treemenu li a.active {
    color: var(--accent) !important;
    font-weight: 600;
    border-left: 4px solid var(--accent);
    padding-left: 24px !important;
}

/* Submenu styling */
.treemenu ul {
    margin: 8px 0 0 0 !important;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
}

.treemenu ul li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.treemenu ul li a {
    font-size: 1rem !important;
    padding: 12px 20px 12px 40px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.treemenu ul li a:hover {
    color: var(--accent) !important;
    padding-left: 48px !important;
}

/* Toggler (expand/collapse icon) */
.toggler {
    display: none;
}
.tree-empty {
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-image {
        display: none;
    }

    .about-image {
        display: none;
    }

    .contact-list {
        gap: 16px;
    }

    .project__gallery {
        margin-bottom: 20px;
    }

    .project__content {
        order: 1;
    }

    .project__image {
        order: 2;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

/* Fade in up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid children */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.35s; }
.fade-in-up:nth-child(6) { transition-delay: 0.4s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Navigation Hover Underline
   ========================================================================== */

#header .navbar .navigation a {
    position: relative;
}

#header .navbar .navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

#header .navbar .navigation a:hover::after,
#header .navbar .navigation a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   SVG Wave Section Separators
   ========================================================================== */

.section-wave {
    line-height: 0;
    margin-bottom: -1px;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

@media (min-width: 768px) {
    .section-wave svg {
        height: 110px;
    }
}

.footer-wave-container {
    line-height: 0;
    margin-bottom: -1px;
    background: #f0f4f8;
}

.footer-wave-container svg {
    display: block;
    width: 100%;
    height: auto;
}
