:root {
    --primary: #ba0c2f;
    /* Ediz Red */
    --primary-hover: #9a0a27;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.container-nav {
    display: flex;
    justify-content: center;
    /* Centered menu since logo is removed */
    align-items: center;
}

.logo img {
    height: 70px;
    /* Adjusted to prevent overlap with nav links */
    transition: var(--transition);
    object-fit: contain;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-top: 160px;
    /* Increased separation by approx 2cm */
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(186, 12, 47, 0.2));
    /* Soft glow instead of heavy shadow */
    background: transparent;
    /* Ensure no CSS background */
    border-radius: 0;
    /* Remove any border radius if inherited */
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    /* Large visible size */
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.4rem;
    /* Increased font size further per request */
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.nav-brand-item {
    background-color: white;
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    height: 50px;
    /* specific height for the tab */
    margin-left: 1rem;
    transition: var(--transition);
}

.nav-brand-item img {
    height: 35px;
    /* Fit within the white box */
    vertical-align: middle;
    filter: none;
    margin: 0;
    /* Removing previous margin */
}

.nav-brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(186, 12, 47, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--glass);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    top: 20%;
    right: 10%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Partners */
.partners {
    padding: 4rem 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.partners-grid {
    display: flex;
    justify-content: center;
    /* Center the group */
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping per user request */
    gap: 2rem;
    overflow-x: auto;
    /* Allow scroll on very small screens if needed */
    padding-bottom: 1rem;
    /* Space for scrollbar if it appears */
}

.partner-item {
    background-color: white;
    width: 220px;
    /* Reduced width */
    height: 110px;
    /* Reduced height */
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    opacity: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: default;
    flex-shrink: 0;
    /* Prevent squishing */
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.partner-logo {
    height: 60px;
    /* Reduced logo size to fit new frame */
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
}

/* Specific style for Astor to fill the frame (Green background) */
.astor-item {
    padding: 8px;
    /* Adds approx 0.5cm total gap (4mm each side approx) */
    overflow: hidden;
    border: none;
    /* Optional: ensures cleaner look */
}

.astor-item .partner-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    /* Ensure logo isn't cut off inside the slight padding */
    border-radius: 4px;
    /* Matches container radius */
}

.partner-item:hover .partner-logo {
    transform: scale(1.05);
    /* Uniform hover effect */
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass);
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-gray);
}

/* EV Charging */
.ev-charging {
    padding: 8rem 0;
    background: linear-gradient(to right, #0a0a0a, #111);
}

.ev-charging .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.ev-content h2 span {
    color: var(--primary);
}

.ev-content p {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.ev-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.ev-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.charger-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.charger-img:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

/* About */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 span {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.contact {
    padding: 8rem 0;
}

.contact-card {
    background: var(--bg-darker);
    padding: 4rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: 3rem;
}

#contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 4rem 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 36px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Field Support Section */
.field-support {
    padding: 8rem 0;
    background: linear-gradient(to left, #0a0a0a, #111);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.field-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.field-text h2 span {
    color: var(--primary);
}

.field-text p {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: var(--transition);
        background-color: var(--text-white);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: var(--transition);
        justify-content: center;
        gap: 3rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .ev-charging .container,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .partners-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Map Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.contact-card {
    text-align: left;
    margin: 0;
    max-width: 100%;
}

.address-details {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: left;
}

.address-details strong {
    color: var(--primary);
}

.map-container-wrapper {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

#map {
    width: 100%;
    height: 450px;
    filter: grayscale(1) invert(0.92) contrast(1.1);
    z-index: 1;
}

.pulsing-point {
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary);
}

.pulsing-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulsate 1.5s ease-out infinite;
    opacity: 0.8;
}

@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container-wrapper {
        min-height: 350px;
    }

    #map {
        height: 350px;
    }
}