:root {
    --color1: #0B2447;
    --color2: #19376D;
    --color3: #576CBC;
    --color4: #A5D7E8;
    --color5: #00f891;
    --dark-bg: #071A36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Balsamiq Sans', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--color4);
    overflow-x: hidden;
}

.body-wall {
    min-width: 300px;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    background-color: var(--color1);
    box-shadow: 0 0 30px rgba(165, 215, 232, 0.1);
}

/* Navbar */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1400px;
    z-index: 1000;
    background-color: rgba(11, 36, 71, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(165, 215, 232, 0.2);
}

.header.scrolled {
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header img {
    max-height: 60px;
    box-shadow: 0 0 15px rgba(165, 215, 232, 0.5);
    border: 3px solid var(--color4);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 20px rgba(0, 248, 145, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("graph/pic1.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color4);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color4);
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--color3), var(--color5));
    color: var(--dark-bg);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 248, 145, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 248, 145, 0.5);
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background-color: var(--color1);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color4);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: var(--color5);
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(25, 55, 109, 0.8), rgba(11, 36, 71, 0.8));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 215, 232, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(165, 215, 232, 0.1), transparent 70%);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(165, 215, 232, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color5);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color4);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--color4);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color2), var(--color1));
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 36, 71, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.5rem;
    color: var(--color4);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 0.9rem;
    color: var(--color5);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--color1);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(11, 36, 71, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(165, 215, 232, 0.1);
    transition: all 0.3s ease;
    color: var(--color4);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: rgba(165, 215, 232, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color5);
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color4);
}

.contact-text p, .contact-text a {
    color: var(--color4);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
}

.contact-text a:hover {
    color: var(--color5);
    opacity: 1;
}

.contact-map {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color4);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;    
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 20px var(--color4); /* Dodaje cień do iframe */
    border: none; /* Usuwa domyślną ramkę */
    border-radius: 5px; /* Opcjonalnie – zaokrąglone rogi */
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(165, 215, 232, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color4);
    background-color: transparent;
}

.footer-contact-data {
    font-size: 0.9rem;
    color: var(--color4);
    opacity: 0.8;
    line-height: 1.6;
    background-color: transparent;
}

.footer-contact-data a {
    color: var(--color4);
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: transparent;
}

.footer-contact-data a:hover {
    color: var(--color5);
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color4);
    opacity: 0.6;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 5s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .services-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid, .portfolio-grid, .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 500px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .header img {
        max-height: 50px;
    }
    
    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .portfolio-title {
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media screen and (max-width: 375px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        font-size: 1.25rem;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color5);
}

.portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}



.title-underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 0 auto;
    border-radius: 2px;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    foreg
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-img-container {
    height: 220px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.portfolio-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.portfolio-btn {
    margin-top: 15px;
}

.btn-details {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: linear-gradient(to right, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}