* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #1a1a1a;
    background: #f8f9fa;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    position: sticky;
    z-index: 1000;
    padding: 20px 40px;
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #e9ecef;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.brand {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.tagline {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#caricon {
    width: 72px;
    height: 72px;
    margin-right: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 80%;
}

.nav-links li a:hover {
    color: #1a1a1a;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
    /* background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1600&q=80'); */
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=600&q=80');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.85) 100%);
    z-index: 0;
}

.overlay {
    display: none;
}

.hero-text {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.4rem;
    margin-top: 20px;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn.ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.blackwhiteicon {
    filter: invert(1) brightness(1.1);
}

#popup-caricon {
    margin-top: 25px;
}

/* Section Headings */
#wyroznia {
    text-align: center;
    font-size: 2.8rem;
    margin-top: 80px;
    margin-bottom: 50px;
    padding: 0 20px;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -1px;
}

#wyroznia::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Features Section */
#main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px auto 100px;
    max-width: 1200px;
    padding: 0 40px;
}

.feature {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(65, 65, 65, 0.15);
    border-color: #1a1a1a;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #232323 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 32px;
    border-radius: 20px;
    box-shadow: 0 5px 15px #232323;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.feature p a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature p a:hover {
    color: #232323;
    text-decoration: underline;
}

/* Services Section */
.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 40px;
    background: #ffffff;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    width: 100%;
}

.services-image {
    position: relative;
    width: 100%;
    animation: slideIn 0.8s ease-out;
}

.services-image .main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid #e9ecef;
    transition: transform 0.3s ease;
}

.services-image:hover .main-image {
    transform: scale(1.02);
}

.services-image .overlay-image {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 300px;
    max-width: 60%;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.services-image:hover .overlay-image {
    transform: scale(1.05) rotate(2deg);
}

.services-content {
    width: 100%;
}

.services-content h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 20px;
}

.services-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #1a1a1a, transparent);
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    animation: fadeInUp 0.6s ease-out;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: #1a1a1a;
    box-shadow: 0 10px 30px #232323;
    background: #f8f9ff;
}

.service-item .icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px #232323);
    transition: transform 0.3s ease;
}

.service-item:hover .icon {
    transform: scale(1.3) rotate(4deg);
}

.service-item .icon img {
    width: 50px;
    height: 50px;
    display: block;
}

.service-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 40px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.footer-left h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
}

.footer-left p {
    margin: 12px 0;
    color: #adb5bd;
}

.footer-map {
    width: 100%;
}

.footer-map iframe {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-right {
    text-align: right;
    color: #adb5bd;
}

.footer a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Query Button */
#send-query {
    display: inline-block;
    padding: 10px 24px;
    color: #1a1a1a;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
    background: transparent;
}

#send-query:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #232323;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.4s ease-out;
}

.small-popup-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-popup-icon span {
    filter: drop-shadow(0 4px 12px #232323);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
    font-weight: 300;
}

.close:hover {
    color: #dc3545;
}

.popupcontent-a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

.popup-content h1,
.popup-content h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
}

.popup-content p {
    color: #6c757d;
    margin: 10px 0;
}

/* Form Styles */
#query-form input,
#query-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

#query-form input:focus,
#query-form textarea:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px #232323;
    outline: none;
}

#query-form textarea {
    resize: vertical;
    min-height: 120px;
}

#query-form button {
    background: linear-gradient(135deg, #1a1a1a 0%, #232323 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    /* box-shadow: 0 5px 20px #232323; */
    width: 100%;
}

#query-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px #232323;
}

#query-success {
    color: #28a745;
    font-weight: 600;
    margin-top: 15px;
    font-size: 15px;
    display: none;
}

#query-error {
    color: #dc3545;
    font-weight: 600;
    margin-top: 15px;
    font-size: 15px;
    display: none;
}

#query-loading {
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 15px;
    font-size: 15px;
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-image {
        order: 2;
    }

    .services-content {
        order: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-right {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .brand {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 18px 10px;
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    #wyroznia {
        font-size: 2rem;
        margin-top: 50px;
        margin-bottom: 30px;
    }

    #main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .services-section {
        padding: 60px 20px;
    }

    .services-content h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-image .overlay-image {
        display: none;
    }

    .footer {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .brand {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-text {
        padding: 30px 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    #wyroznia {
        font-size: 1.6rem;
        padding: 0 15px;
    }

    #main {
        padding: 0 15px;
    }

    .feature {
        padding: 25px;
    }

    .services-section {
        padding: 40px 15px;
    }

    .services-content h2 {
        font-size: 1.6rem;
    }

    .service-item {
        padding: 20px;
    }

    .footer {
        padding: 30px 15px;
    }

    .popup-content {
        padding: 30px 20px;
        max-width: 95%;
    }
}
