@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root {
    --primary-color: #08D9D6;
    --secondary-color: #FF2E63;
    --tertiary-color: #793FDF;
    --main-bg: #0D1117;
    --card-bg: #161B22;
    --body-bg: #0A0A0A;
    --text-color: #F0F0F0;
    --text-color-dark: #CDCDCD;
    --header-height: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 5rem 0;
    background-color: var(--main-bg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

p {
    color: var(--text-color-dark);
}

section::before,
section::after,
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    filter: blur(80px);
    background-repeat: no-repeat;
    opacity: 0.2;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: rgba(8, 217, 214, 0.2);
    color: var(--text-color);
    border-color: rgba(8, 217, 214, 0.5);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: #999999;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(13, 17, 23, 0.6), rgba(13, 17, 23, 0.6)), url('images/maluje.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

header::before {
    background: var(--primary-color);
    width: 350px;
    height: 350px;
    top: 5%;
    left: -50px;
    opacity: 0.15;
    z-index: 1;
}

header::after {
    background: var(--secondary-color);
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -50px;
    opacity: 0.1;
    z-index: 1;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--body-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    line-height: 1;
}

.logo img {
    max-height: 180px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 300;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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


/* Admin Link Style */

.admin-link {
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8, 217, 214, 0.1);
    color: rgba(8, 217, 214, 0.6) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links .admin-link {
    margin-left: 1rem;
}

.admin-link:hover {
    background: rgba(8, 217, 214, 0.25) !important;
    color: var(--primary-color) !important;
    transform: scale(1.15) rotate(20deg);
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #F0F0F0;
}

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

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--main-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
}

.mobile-nav.is-open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

.services {
    background-color: var(--main-bg);
}

.services::before {
    background: var(--tertiary-color);
    width: 350px;
    height: 350px;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    opacity: 0.15;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    flex-grow: 1;
}

.projects {
    background-color: var(--card-bg);
}

.projects::after {
    background: var(--primary-color);
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    opacity: 0.15;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--main-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.project-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #FFFFFF;
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.project-card-comparison {
    background: var(--main-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card-comparison:hover {
    transform: scale(1.02);
}

.project-card-comparison .img-wrapper {
    display: flex;
    width: 100%;
    height: 250px;
    position: relative;
}

.project-card-comparison .img-wrapper img {
    width: 50%;
    object-fit: cover;
    display: block;
    height: 100%;
}

.project-card-comparison .img-wrapper img:first-child {
    border-right: 3px solid var(--primary-color);
}

.project-card-comparison .img-wrapper::before,
.project-card-comparison .img-wrapper::after {
    content: '';
    position: absolute;
    top: 10px;
    background: rgba(13, 17, 23, 0.8);
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.project-card-comparison .img-wrapper::before {
    content: 'PRZED';
    left: 10px;
}

.project-card-comparison .img-wrapper::after {
    content: 'PO';
    right: 10px;
}

.project-caption-comparison {
    width: 100%;
    background: var(--main-bg);
    color: var(--text-color);
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.testimonials {
    background-color: var(--main-bg);
    position: relative;
}

.testimonials::before {
    background: var(--secondary-color);
    width: 350px;
    height: 350px;
    top: -80px;
    left: -80px;
    opacity: 0.15;
}

.faq {
    background-color: var(--body-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--main-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-color-dark);
}

.contact {
    background: var(--card-bg);
    text-align: center;
    padding-top: 5rem;
    border-top: 1px solid var(--main-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    background: var(--tertiary-color);
    width: 400px;
    height: 400px;
    top: 0;
    right: -150px;
    opacity: 0.1;
    z-index: 0;
}

.contact h2 {
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-group-split {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--main-bg);
    border: 1px solid var(--main-bg);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    font-size: 1rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    background: var(--main-bg);
    font-size: 0.9rem;
    color: var(--text-color-dark);
    box-shadow: none;
    border-top: 1px solid var(--card-bg);
    position: relative;
    z-index: 1;
}

.hero-subpage {
    min-height: 40vh;
}

.page-header-content {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-header-content h1 {
    font-size: 3rem;
    color: var(--text-color);
}

.page-header-content p {
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.services-grid-subpage,
.projects-grid-subpage {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.projects-teaser {
    background-color: var(--card-bg);
}

.section-link-wrapper {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .services-grid:not(.services-grid-subpage) {
        grid-template-columns: 1fr 1fr;
    }
    .projects-grid:not(.projects-grid-subpage) {
        grid-template-columns: 1fr 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
     :root {
        --header-height: 100px;
    }
    .logo img {
        max-height: 80px;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 80%;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    h2 {
        font-size: 2rem;
    }
    .projects-teaser .projects-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .form-group-split {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .form-group {
        margin-bottom: 1.5rem;
    }
    section::before,
    section::after,
    .hero::before,
    .hero::after {
        display: none;
    }
}

.testimonial-slider {
    position: relative;
}

.testimonial-slider .swiper-slide {
    height: auto;
}

.swiper-slide blockquote {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    text-align: left;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: rgba(22, 27, 34, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, var(--tertiary-color), var(--primary-color)) 1;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.swiper-slide blockquote:hover {
    transform: translateY(-5px);
}

.swiper-slide blockquote p {
    font-style: normal;
    font-size: 1rem;
    color: var(--text-color-dark);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.star-rating {
    font-size: 1.2rem;
    color: #FFC107;
    margin-bottom: 1rem;
    text-align: left;
}

.author-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--main-bg);
}

.author-avatar::before {
    content: attr(data-initials);
}

.author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.author-name {
    display: block;
    font-weight: 600;
    font-style: normal;
    color: var(--text-color);
}

.author-handle {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-color-dark);
}

.google-logo {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4285F4;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(22, 27, 34, 0.8);
    border-radius: 50%;
    color: var(--primary-color);
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--card-bg);
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem;
    font-weight: 900;
}

@media (min-width: 768px) {
    .swiper-button-prev {
        left: -10px;
    }
    .swiper-button-next {
        right: -10px;
    }
    .testimonial-slider:hover .swiper-button-prev,
    .testimonial-slider:hover .swiper-button-next {
        opacity: 1;
    }
    .testimonial-slider .swiper-button-prev,
    .testimonial-slider .swiper-button-next {
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 0.8rem;
    }
    .swiper-button-prev {
        left: 5px;
    }
    .swiper-button-next {
        right: 5px;
    }
}

.animated-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 10s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( circle at 0% 0%, rgba(8, 217, 214, 0.12) 0%, transparent 25%), radial-gradient( circle at 100% 0%, rgba(121, 63, 223, 0.1) 0%, transparent 25%), radial-gradient( circle at 0% 100%, rgba(255, 46, 99, 0.08) 0%, transparent 25%), radial-gradient( circle at 100% 100%, rgba(8, 217, 214, 0.1) 0%, transparent 25%);
    animation: aurora 15s ease infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( ellipse 800px 600px at 0% 0%, rgba(8, 217, 214, 0.06) 0%, transparent 70%), radial-gradient( ellipse 800px 600px at 100% 0%, rgba(121, 63, 223, 0.05) 0%, transparent 70%), radial-gradient( ellipse 800px 600px at 0% 100%, rgba(255, 46, 99, 0.04) 0%, transparent 70%), radial-gradient( ellipse 800px 600px at 100% 100%, rgba(8, 217, 214, 0.05) 0%, transparent 70%);
    animation: auroraCorners 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.6;
    }
    75% {
        opacity: 0.9;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
}

@keyframes auroraCorners {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.about-us {
    background-color: var(--card-bg);
}

.about-us-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-us-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-us-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-us-text p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-us-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-us-image {
        margin-bottom: 2rem;
    }
    .about-us-image img {
        margin: 0 auto;
    }
}