/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #33c759;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #fff;
    --text-gray: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-green);
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.top-bar-phone,
.top-bar-email {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
}

.language-link {
    display: inline-flex;
    align-items: center;
}

.flag-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* Navigation */
.main-nav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    padding: 0 20px;
    color: var(--text-light);
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.hero-text p {
    margin-bottom: 15px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-light);
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Section Styles */
section {
    padding: 40px 0;
}

.hero-section {
    padding: 0;
}

.section-white {
    background-color: #fff;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-green);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

.section-title-left {
    text-align: left;
}

.section-title-right {
    text-align: right;
}

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

/* What We Do Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon-wrapper {
    width: 104px;
    height: 104px;
    background-image: none;
    margin: 0 auto;
    padding: 25px;
    background-color: #33c759;
    border-radius: 50%;
}

.service-icon-wrapper img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-dark .service-title {
    color: var(--text-light);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
}

.section-dark .service-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Home Charging Section */
.home-charging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.home-charging-image img,
.business-charging-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.home-charging-text p,
.business-charging-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.section-white .home-charging-text p {
    color: var(--text-dark);
}

/* Business Charging Section */
.business-charging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Solutions Section */
.solutions {
    position: relative;
    background-image: url('https://cdn.plugy.pl/images/solutions-bg-min.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
}

.solutions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.solutions .container {
    position: relative;
    z-index: 2;
}

.solutions-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.solutions-subtitle {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.solutions-left p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.solutions-list {
    list-style: none;
}

.solutions-list li {
    color: var(--text-light);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 10px 10px 30px;
    border-radius: 4px;
}

.solutions-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.solutions-list li:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.solutions-list li:hover::before {
    transform: translateX(3px);
}

.solutions-list li.active {
    color: var(--primary-green);
}

.solutions-list li.active::before {
    transform: translateX(3px);
}

.solutions-left {
    transition: opacity 0.3s ease;
}

.solutions-subtitle {
    transition: opacity 0.3s ease;
}

#solutionDescription {
    transition: opacity 0.3s ease;
}

#solutionDescription p {
    margin-bottom: 20px;
}

/* Investment Section */
.investment-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.gallery-modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.gallery-close:hover,
.gallery-close:focus {
    color: var(--primary-green);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 16px;
    user-select: none;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    color: var(--primary-green);
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-prev:active,
.gallery-next:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.investment-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

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

.investment-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.investment-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.investment-description {
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    position: relative;
    background-image: url('https://cdn.plugy.pl/images/contact-bg-min.jpg');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    padding: 80px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-intro {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-green);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #00b874;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    color: var(--text-light);
    display: none;
}

.form-message.success {
    background-color: #4caf50;
    display: block;
}

.form-message.error {
    background-color: #f44336;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-icon {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-column p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .investment-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 38px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .top-bar-phone,
    .top-bar-email {
        font-size: 13px;
    }

    .hero-section {
        height: 60vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .section-title-left,
    .section-title-right {
        text-align: center;
    }

    section {
        padding: 60px 0;
    }

    .services-grid,
    .investment-features,
    .investment-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-charging-content,
    .business-charging-content,
    .solutions-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .solutions-left,
    .solutions-right {
        text-align: center;
    }

    .solutions-list {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .solutions-list li {
        text-align: left;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 30px;
        padding: 12px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    section {
        padding: 40px 0;
    }

    .service-card,
    .investment-feature {
        padding: 20px;
    }

    .service-title,
    .investment-title {
        font-size: 20px;
    }

    .solutions-subtitle {
        font-size: 24px;
    }

    .solutions-list li {
        font-size: 16px;
    }

    .solutions-left,
    .solutions-right {
        text-align: center;
    }

    .solutions-list {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-section {
        min-height: auto;
        padding: 60px 0;
    }
}

