@media (max-width: 600px) {
    .cover-content {
        padding: 18px 8px;
        border-radius: 14px;
    }
    .cover h1 {
        font-size: 2.1rem !important;
        margin-bottom: 10px;
    }
    .cover h2 {
        font-size: 1.15rem !important;
        margin-bottom: 12px;
    }
    .cover p {
        font-size: 1rem !important;
        margin-bottom: 22px;
    }
    .cta-button {
        padding: 10px 22px;
        font-size: 0.98rem;
        min-width: 210px;
        white-space: nowrap;
    }
    .service-card {
        padding: 30px 20px;
    }
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Kontakt sekcija - mobilni prikaz */
    .contact-content {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    .contact-map, .contact-form {
        max-width: 100%;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .contact-form {
        padding: 22px 14px;
        box-shadow: 0 4px 16px #1976d222;
        gap: 12px;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 14px 12px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .form-row input {
        width: 100%;
    }
    .contact-map iframe {
        min-width: 0;
        height: 240px;
        border-radius: 12px;
    }
    .btn-submit {
        padding: 14px 0;
        font-size: 1.05rem;
        margin-top: 6px;
    }
    
    /* Package sekcija */
    .package-card {
        padding: 26px 18px;
    }
    .package-card h3 {
        font-size: 1.4rem;
    }
    .package-card .price {
        font-size: 1.8rem;
    }
    
    /* Why us sekcija */
    .why-us-item {
        padding: 20px 16px;
    }
    .why-us-item h4 {
        font-size: 1.15rem;
    }
    .why-us-item p {
        font-size: 0.95rem;
    }
}

.contact-map {
    min-height: 350px;
}
.contact-map iframe {
    border: none;
    width: 100%;
    height: 350px;
    border-radius: 8px;
    box-shadow: none;
    filter: none;
}

/* Stilizovana kontakt forma */
.contact-form {
    background: #f8fbff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #1976d233;
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 220px;
    max-width: 420px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 1.5px solid #b3c6e0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    background: #fff;
    color: #232a34;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1.5px 0 #e3f0fa;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border: 1.5px solid #1976d2;
    box-shadow: 0 0 0 3px #1976d233;
}
.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row > * {
    min-width: 0;
    width: 100%;
}
.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}
.btn-submit {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px #1976d233;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-submit:hover, .btn-submit:focus {
    background: linear-gradient(90deg, #1565c0 0%, #64b5f6 100%);
    box-shadow: 0 4px 16px #1976d244;
    transform: translateY(-1px);
}
.btn-submit:active {
    transform: translateY(0);
}
/* Inline form status messages */
.form-status {
    margin-top: 8px;
    min-height: 22px;
    font-size: 0.95rem;
}
.form-status.success {
    color: #1b5e20;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px 12px;
    border-radius: 10px;
}
.form-status.error {
    color: #b71c1c;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px 12px;
    border-radius: 10px;
}
/* Centriranje srednje footer kolone */
.footer-col:nth-child(2) h4,
.footer-col:nth-child(2) .footer-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mapa pored forme */
.contact-content {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.contact-map {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-form {
    flex: 1 1 320px;
    min-width: 220px;
}
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        gap: 18px;
    }
    .contact-map, .contact-form {
        max-width: 100%;
    }
}

/* Why Us Section */
.why-us {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.why-us-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e3f0fa;
    padding: 28px 24px;
    box-shadow: 0 4px 16px #1976d211;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-us-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f0fa 0%, #eaf4ff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 2.2rem;
    color: #1976d2;
    transition: transform 0.3s ease, background 0.3s ease;
}
.why-us-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-blue);
}
.why-us-card p {
    color: #4a5a6a;
}
.why-us-card:hover::before {
    transform: scaleX(1);
}
.why-us-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(25,118,210,0.22);
    border-color: #1976d233;
}
.why-us-card:hover .why-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, #1976d211 0%, #42a5f522 100%);
}

@media (max-width: 600px) {
    .why-us { padding: 60px 0 50px 0; }
    .why-icon { width: 72px; height: 72px; font-size: 2rem; }
}
/* Footer */

.site-footer {
    background: linear-gradient(120deg, #181d23 0%, #232a34 100%);
    color: #f3f6fa;
    padding: 60px 0 0 0;
    font-size: 16px;
    box-shadow: 0 -2px 24px rgba(0,0,0,0.12);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    padding: 0 24px;
    border-bottom: 1.5px solid #232a34;
}
.footer-col {
    flex: 1 1 260px;
    min-width: 220px;
    margin-bottom: 36px;
    padding-right: 24px;
    position: relative;
}
.footer-col:not(:last-child):after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, #232a34 10%, #2e3742 90%);
    opacity: 0.18;
    border-radius: 2px;
    display: block;
}
.footer-col h4 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.footer-col p {
    color: #cfd8e3;
    margin-bottom: 20px;
    line-height: 1.7;
}
.footer-legal {
    font-size: 15px;
    color: #b0b0b0;
    margin-top: 12px;
    letter-spacing: 0.5px;
}
.footer-legal strong {
    color: #fff;
}
.footer-contact {
    list-style: none;
    padding: 0;
    color: #e0e0e0;
    font-size: 16px;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    letter-spacing: 0.2px;
}

/* Font Awesome ikone u footeru */
.footer-contact i {
    color: #1976d2 !important;
    font-size: 1.25em !important;
    min-width: 22px;
    text-align: center;
}

/* Font Awesome ikone u uslugama */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-icon i {
    color: #1976d2 !important;
    font-size: 2.2rem !important;
    filter: drop-shadow(0 2px 6px #1976d233);
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu a {
    color: #f3f6fa;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s, text-shadow 0.2s;
    text-shadow: 0 1px 2px #232a34;
}
.footer-menu a:hover {
    color: var(--primary-blue);
    text-shadow: 0 2px 8px #1976d2aa;
}
.footer-bottom {
    border-top: 1.5px solid #232a34;
    text-align: center;
    padding: 20px 0 12px 0;
    color: #b0b0b0;
    font-size: 15px;
    margin-top: 0;
    background: #181d23;
    letter-spacing: 0.5px;
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        border-bottom: 1.5px solid #232a34;
    }
    .footer-col {
        min-width: 0;
        width: 100%;
        padding-right: 0;
    }
    .footer-col:not(:last-child):after {
        display: none;
    }
}
@media (max-width: 900px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 220px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.07);
        flex-direction: column;
        align-items: flex-end;
        padding: 18px 0 10px 0;
        z-index: 1001;
        border-radius: 0 0 10px 10px;
    }
    nav.open {
        display: flex !important;
    }
    nav.open ul {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    nav.open .cta-button {
        margin: 16px 0 0 0;
        width: 90vw;
        max-width: 260px;
        font-size: 15px;
        padding: 12px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
    }
    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}
/* Hamburger dugme */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-blue);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 900px) {
    nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.07);
        flex-direction: column;
        align-items: center;
        padding: 18px 0 10px 0;
        display: none;
        z-index: 1001;
    }
    nav.open {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    .cta-button {
        margin: 10px 0 0 0;
        width: 90vw;
        max-width: 320px;
        font-size: 15px;
        padding: 12px 0;
    }
    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}
/* Mobile nav wrap */
.mobile-nav-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

@media (max-width: 700px) {
    .mobile-nav-wrap {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .mobile-nav-wrap nav {
        width: 100%;
        margin-bottom: 8px;
    }
    .mobile-nav-wrap .cta-button {
        width: 100%;
        max-width: 140px;
        margin: 0 auto 10px auto;
        padding: 10px 0;
        font-size: 15px;
        display: block;
    }
}
/* Why Us Section */
.why-us {
    background: var(--light-bg);
    padding: 70px 0 40px 0;
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    justify-items: center;
}
.why-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 35px 20px 25px 20px;
    text-align: center;
    min-width: 180px;
    position: relative;
    transition: transform 0.2s;
}
.why-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.13);
}
.why-icon {
    font-size: 38px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}
.why-counter {
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.why-label {
    font-size: 16px;
    color: var(--text-dark);
}
.why-us-benefits {
    display: flex;
    justify-content: center;
}
/* Benefits responsive row layout */
.why-us-benefits ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    font-size: 17px;
    color: var(--text-dark);
    padding: 0;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.why-us-benefits li {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    justify-content: center;
}
@media (max-width: 1100px) {
    .why-us-benefits ul {
        flex-wrap: wrap;
        row-gap: 18px;
        column-gap: 18px;
    }
    .why-us-benefits li {
        min-width: 180px;
    }
}
@media (max-width: 900px) {
    .why-us-benefits ul {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }
    .why-us-benefits li {
        min-width: 160px;
    }
}
@media (max-width: 700px) {
    .why-us-benefits ul {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .why-us-benefits li {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-us-benefits ul {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-blue: #1976D2;
    --dark-blue: #0D47A1;
    --light-bg: #F5F5F5;
    --text-dark: #222;
    --text-light: #666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 32px;
    position: relative;
}
nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.cta-button {
    margin-left: 24px;
}
    .navbar .container {
        position: relative;
    }
nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s cubic-bezier(.4,0,.2,1);
}
nav a::after {
    content: '';
    background: var(--primary-blue);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
    position: absolute;
    left: 0;
    bottom: -2px;
}
nav a:hover {
    color: var(--primary-blue);
}
nav a:hover::after {
    width: 100%;
}

/* Active nav link state */
nav a.active {
    color: var(--primary-blue);
}
nav a.active::after {
    width: 100%;
}

/* Cover Section */

/* Anchor offset for sticky header */
.services,
.packages,
.contact,
.why-us {
    scroll-margin-top: 90px;
}

/* Final mobile fixes to prevent overflow in contact section */
@media (max-width: 1200px) {
    .contact-content {
        flex-direction: column;
        gap: 18px;
    }
    .contact-map, .contact-form {
        width: 100%;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto;
        box-sizing: border-box;
    }
    /* Form above map on tablet/mobile */
    .contact-form { order: 1; }
    .contact-map  { order: 2; }
}

@media (max-width: 600px) {
    .contact-content {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        overflow: hidden;
    }
    .contact-map, .contact-form {
        width: 100%;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0;
        box-sizing: border-box;
    }
    .contact-form {
        padding: 22px 14px;
        margin: 0;
    }
    .contact-map iframe {
        width: 100%;
        min-width: 0;
        display: block;
    }
}

/* FINAL OVERRIDES: ensure contact stacks and form is first on narrow screens
   These come after later grid definitions to win in cascade. */
@media (max-width: 1200px) {
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px;
    }
    .contact-form { order: 1; }
    .contact-map  { order: 2; }
    .contact-map, .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* FINAL OVERRIDES: Why Us layout - 2 per row on wider screens */
@media (min-width: 700px) {
    .why-us-grid {
        grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
        gap: 32px !important;
    }
}
@media (max-width: 699px) {
    .why-us-grid {
        grid-template-columns: 1fr !important;
    }
}
.why-us-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cover {
    height: 75vh;
    background: url('slike/managed-it-services.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cover-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    display: inline-block;
    padding: 36px 48px;
    border-radius: 22px;
}
.cover-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -24px;
    right: -24px;
    bottom: -16px;
    background: rgba(0,0,0,0.20);
    border-radius: 28px;
    z-index: -1;
}

.cover h1 {
    font-size: 64px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cover h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.cover p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background-color: var(--light-bg);
    color: var(--dark-blue);
}

/* Section Titles */
.section-title {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 24px;
    font-weight: 800;
    letter-spacing: 1.2px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    opacity: 0;
    animation: fadeInTitle 1.1s ease forwards;
    animation-delay: 0.2s;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(.4,1.7,.7,1.1), background 0.3s;
    opacity: 0.85;
}

.section-title:hover::after {
    width: 120px;
    background: linear-gradient(90deg, #42a5f5 0%, #1976d2 100%);
    opacity: 1;
}

@keyframes fadeInTitle {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments for section titles */
@media (max-width: 600px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 28px;
        padding-bottom: 14px;
        letter-spacing: 0.8px;
    }
    .section-title::after {
        width: 56px;
        height: 3px;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}


.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 4px 16px #1976d211;
    border: 1.5px solid #e3f0fa;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease,
                background 0.35s ease;
    overflow: visible;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 14px 14px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.package-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover, .service-card:focus-within,
.package-card:hover, .package-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(25, 118, 210, 0.22);
    z-index: 2;
    border-color: #1976d233;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
}
.service-card h3, .service-card p {
    text-align: center;
    transition: color 0.35s ease;
}

.service-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f0fa 0%, #e8f4f8 100%);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background 0.35s ease;
    margin-left: auto;
    margin-right: auto;
}
.service-card:hover .service-icon {
    transform: scale(1.15) rotateZ(-5deg);
    background: linear-gradient(135deg, #1976d211 0%, #42a5f522 100%);
}
.service-card:hover .service-icon i {
    color: #1976d2 !important;
    filter: drop-shadow(0 2px 4px rgba(25, 118, 210, 0.3));
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}
.service-card:hover h3 {
    color: #1565c0;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}
.service-card:hover p {
    color: #3a4f64;
}

/* Packages Section */
.packages {
    padding: 80px 0;
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.package-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    /* hover efekat sada je samo scale i shadow, vidi iznad */
}

.package-card.featured {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(25, 118, 210, 0.02) 100%);
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(25, 118, 210, 0.15);
}

.badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.package-header {
    margin-bottom: 30px;
    text-align: center;
}

.package-header h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.amount {
    font-size: 44px;
    font-weight: bold;
    color: var(--text-dark);
}

.currency {
    font-size: 18px;
    color: var(--text-light);
}

.period {
    font-size: 14px;
    color: var(--text-light);
}

.features {
    list-style: none;
    margin-bottom: 30px;
}

.features li {
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.features li:last-child {
    border-bottom: none;
}

.btn-package {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--primary-blue);
    background-color: transparent;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-package:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--text-dark);
}

.contact-info strong {
    color: var(--primary-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}


.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    padding: 15px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar .container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: flex-start;
    }
    nav {
        margin-left: auto;
        justify-content: flex-end;
    }
    nav ul {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-end;
    }
    .cta-button {
        margin-left: 10px;
        width: auto;
        max-width: 120px;
        padding: 10px 18px;
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    .navbar .container {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
    }
    nav {
        margin-left: auto;
        width: auto;
        justify-content: flex-end;
    }
    nav ul {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
        width: auto;
    }
    .cta-button {
        margin-left: 8px;
        width: auto;
        max-width: 100px;
        padding: 8px 12px;
        font-size: 14px;
    }
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .why-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 18px 6px 14px 6px;
        font-size: 15px;
    }
}
