/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tempus brand colors */
    --tempus-blue: #598087;
    --tempus-blue-dark: #436065;
    --tempus-blue-light: #dce4e7;
    --tempus-orange: hsl(44, 94%, 65%);
    --tempus-orange-dark: hsl(44, 94%, 57%);
    --tempus-gray-50: hsl(0, 0%, 100%);
    --tempus-gray-100: hsl(200, 25%, 97%);
    --tempus-gray-200: hsl(200, 14%, 91%);
    --tempus-gray-800: hsl(186, 14%, 30%);
    --tempus-gray-900: hsl(186, 16%, 20%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--tempus-gray-900);
    background: white;
}

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

/* Typography */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tempus-gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--tempus-gray-800);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-divider {
    height: 0px;
    border: 1px solid var(--tempus-blue);
    border-radius:0.5px;
    width: 80%;
    margin: 1rem 10%;
}

/* Buttons */
.btn-primary {
    background: var(--tempus-orange);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--tempus-orange-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 10%;
    color: white;
    background: url('media/tempus-manager-laptop-updated-compressed.jpg') center center / cover no-repeat;
    z-index: 1;
    height: 100vh;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}


.hero-grid {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 10%;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    text-align: center;
    color: white;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.hero-title {
    color: white;
    line-height: normal;
    font-size: 3rem;
}

.hero-title-accent {
    color: var(--tempus-orange); /* istaknuta nijansa */
}

.hero-description,
.hero-note {
    color: hsl(0, 0%, 90%);
}


.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-bottom: -1rem;
}

.hero-note {
    font-size: 0.875rem;
}

.hero-image-container {
    position: relative;
}

.hero-video {
    width: 100%;
    border-radius: 1rem; /* Isto kao tvoja slika */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Suptilna ivica umesto sive */
    transition: all 0.3s ease;
    cursor: pointer;
    background: #000; /* Crna pozadina dok se video učitava */
    display: block;
}

.hero-video:hover {
    transform: scale(1.02); /* Malo manji scale nego kod slike da ne seče ivice plejera */
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-image-container {
        width: 100%;
        margin-top: 2rem;
    }
}

/* Centriranje i stilizacija play dugmeta */
.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 8rem;
    width: 8rem;
    background: var(--tempus-blue); /* Jako suptilna providna pozadina */
    backdrop-filter: blur(8px); /* Moderni glassmorphism efekat */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

/* Velicina same strelice unutar kruga */
.custom-play-btn svg {
    width: 5rem;
    height: 5rem;
    margin-left: 0.1rem; /* Optičko centriranje strelice (jer je trougao) */
}

/* Animacija kada korisnik pređe mišem preko celog videa */
.hero-image-container:hover {
    background: rgba(255, 255, 255, 0.2); /* Postaje malo svetlije */
    transform: translate(-50%, -50%) scale(1.1); /* Blago se poveća */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* Benefits Section */
.benefits-section {
    padding: 5rem 1rem;
    /*background: linear-gradient(0deg, var(--tempus-gray-50) 0%, white 100%);*/
    background-color: var(--tempus-gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--tempus-gray-50);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--tempus-blue-light);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.benefit-icon .icon {
    width: 2rem;
    height: 2rem;
    color: var(--tempus-blue);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tempus-gray-900);
    margin-bottom: 1rem;
}

.benefit-description {
    color: var(--tempus-gray-800);
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    padding: 5rem 1rem;
    background: var(--tempus-gray-50);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.demo-grid:last-child {
    margin-bottom: 0;
}

.demo-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tempus-gray-900);
    margin-bottom: 1.5rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--tempus-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-feature span {
    color: var(--tempus-gray-800);
}

.demo-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.demo-image:hover {
    transform: scale(1.05);
}

.demo-image-mobile {
    max-width: 20rem;
    margin: 0 auto;
}

.demo-mobile {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 1rem;
    background: white;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--tempus-gray-50);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    max-width: 24rem;
}

.testimonial-clickable {
    background: var(--tempus-gray-50);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    max-width: 24rem;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    color: inherit;
}

.testimonial-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -2px rgba(0,0,0,0.15);
    background: white;
}

.testimonial-body {
    margin-top: 1.5rem;
}

.testimonial-text {
    color: var(--tempus-gray-800);
    font-size: 1.125rem;
    line-height: 1.6;
}

.testimonial-logo {
    margin-bottom: 1.5rem;
}

.ralex-logo {
    height: 5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.testimonial-text {
    color: var(--tempus-gray-800);
    font-size: 1.125rem;
    line-height: 1.6;
}

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

.testimonial-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tempus-gray-900);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1rem;
    background: linear-gradient(0deg, var(--tempus-gray-50) 0%, var(--tempus-blue-light) 100%);
}

.faq-container {
    max-width: 64rem;
    margin: 0 auto;
}

.accordion {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--tempus-gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tempus-gray-900);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-trigger:hover {
    background: var(--tempus-gray-50);
}

.accordion-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-trigger.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    color: var(--tempus-gray-800);
    line-height: 1.6;
}

.faq-footer {
    text-align: center;
    margin-top: 3rem;
}

.faq-footer p {
    color: var(--tempus-gray-800);
    margin-bottom: 1rem;
}

.faq-link {
    color: var(--tempus-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: var(--tempus-blue-dark);
}

/* CTA Section */
.cta-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--tempus-blue) 0%, var(--tempus-blue-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    color: hsl(186, 18%, 85%);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-action {
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 1.5rem 2.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 1.125rem;
    color: hsl(186, 18%, 85%);
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

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

.cta-feature-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-feature-label {
    color: hsl(186, 18%, 85%);
}

.cta-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(186, 18%, 55%);
}

.cta-footer p {
    color: hsl(186, 18%, 85%);
    font-size: 0.875rem;
}

.cta-footer a,
.cta-footer span {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.cta-footer a:hover {
    color: hsl(186, 18%, 85%);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--tempus-gray-200);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.4s;
}

span.close-button {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
}

span.close-button:hover,
span.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--tempus-gray-800);
}

#trial-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#trial-form label {
    font-weight: 600;
    color: var(--tempus-gray-800);
}

#trial-form input {
    padding: 0.75rem;
    margin: -1.5rem 0 0 0;
    border: 1px solid var(--tempus-gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.modal .btn-primary {
    margin-top: 1rem;
    padding: 1rem;
    width: 100%;
    font-size: 1.5rem
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}


/* Responsive Design */
@media (min-width: 768px) {

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .demo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .demo-grid-reverse .demo-content {
        order: 2;
    }

    .demo-grid-reverse .demo-image-container {
        order: 1;
    }

    .cta-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (orientation: portrait) {
    .hero-grid {
        flex-direction: column;
        gap: 0;
        justify-content: space-around;
    }
}