* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-white: #FFFFFF;
    --pure-black: #171a20;
    --light-gray: #f4f4f4;
    --medium-gray: #393c41;
    --dark-gray: #171a20;
    --text-gray: #5c5e62;
    --tesla-red: #e31937;
    --tesla-blue: #3498db;
    --accent-blue: #1976d2;
    --border-gray: #d3d3d3;
    --hover-gray: #f8f8f8;
    --max-width: 1200px;
    
    /* Tesla-style subtle effects */
    --subtle-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--primary-white);
    overflow: hidden;
    overflow-y: auto;
}

section {
    margin-bottom: 10px;
}

section, footer {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--subtle-shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: var(--dark-gray);
}

.nav-cta {
    background: var(--dark-gray);
    color: var(--primary-white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.nav-cta:hover {
    background: var(--medium-gray);
    transform: translateY(-1px);
    box-shadow: var(--hover-shadow);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark-gray);
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(180deg, rgba(23, 26, 32, 0.2) 0%, rgba(23, 26, 32, 0.4) 100%),
        url('https://ev-database.org/img/auto/Tesla_Model_Y_2025/Tesla_Model_Y_2025-11@2x.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--primary-white);
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background: var(--primary-white);
    color: var(--dark-gray);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
    border: 3px solid transparent;
}

.hero-cta:hover {
    background: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
    transform: translateY(-2px);
}

.fullwidth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullwidth-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fullwidth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.fullwidth-section.dark .section-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.overlay-content {
    text-align: center;
    color: var(--primary-white);
    max-width: 600px;
    padding: 0 2rem;
}

.overlay-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.overlay-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}


/* Interior Carousel */
.interior-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-track, .carousel-slide {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
}

.carousel-btn:hover {
    background: var(--primary-white);
    transform: scale(1.05);
    box-shadow: var(--card-shadow);
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-white);
    transform: scale(1.2);
}

/* Specifications Section */
.specs-section {
    background: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    height: auto;
    min-height: 100vh;
}

.specs-container {
    max-width: var(--max-width);
    width: 100%;
    text-align: center;
}

.specs-header {
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.specs-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.specs-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Original grid for 3 items */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* SPREMEMBA: Dodan nov stil za 2x2 bento grid */
.why-rent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
}

.spec-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.spec-card:hover {
    background: var(--hover-gray);
    box-shadow: var(--hover-shadow);
}

.spec-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    letter-spacing: -0.01em;
}

.spec-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(23, 26, 32, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    text-align: center;
    color: var(--primary-white);
    max-width: 800px;
    padding: 0 2rem;
}

.footer-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .nav-menu.active {
        display: flex;
        background: var(--primary-white);
        box-shadow: var(--card-shadow);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    /* SPREMEMBA: Na mobilnih napravah se 2x2 mreža spremeni v enojni stolpec */
    .why-rent-grid {
        grid-template-columns: 1fr;
    }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition-delay: 0.2s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.spec-card.fade-in:nth-child(2) {
    transition-delay: 0.3s;
}

.spec-card.fade-in:nth-child(3) {
    transition-delay: 0.4s;
}

.spec-card.fade-in:nth-child(4) {
    transition-delay: 0.5s;
}