/* ===================================
   KOLEKTIV PRO - Stilovi
   =================================== */

:root {
    --primary: #33CCCC;
    --primary-hover: #2BBBBB;
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --gray-border: #eeeeee;
    --text-muted: #666666;
    --radius-lg: 3rem;
    --radius-md: 1.5rem;
    --container-max: 1280px;
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.1);
    --shadow-primary: 0 10px 30px rgba(51, 204, 204, 0.3);
    --shadow-back-to-top: 0 8px 16px rgba(51, 204, 204, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografija */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 900; text-transform: uppercase; }

.text-primary { color: var(--primary); }
.small-text { font-size: 0.75rem; opacity: 0.6; font-weight: 600; margin-top: -0.5rem; }

/* Gumbi */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 0.85rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-outline { background: transparent; border: 2.2px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; }

.btn-white { background: var(--white); color: var(--primary); }
.btn-block { width: 100%; margin-top: auto; height: 3.5rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-border);
    z-index: 1000;
    height: 75px;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 40px; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--black); font-weight: 700; transition: color 0.3s; position: relative; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

/* Mobile-only link */
.mobile-only { display: none; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--primary); cursor: pointer; }

@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: 75px; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gray-border);
        transform: translateY(-150%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.3rem; margin-left: 0; }
    .mobile-only { display: block; }
}

/* Hero */
.hero { padding: 7rem 0 3rem; background: var(--white); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

.badge {
    background: #E6F7F7; color: var(--primary);
    padding: 0.4rem 0.8rem; border-radius: 0.6rem;
    font-size: 0.65rem; font-weight: 900;
    letter-spacing: 0.15em; display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 0.95rem; color: rgba(0,0,0,0.6); margin-bottom: 1.5rem; max-width: 550px; }
.hero-btns { display: flex; gap: 0.75rem; }
.hero-image .gif-container { max-width: 320px; margin: 0 auto; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; margin-top: 0; margin-bottom: 2rem; }
    .hero-text { order: 1; }
    .hero-btns { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .hero p { margin-left: auto; margin-right: auto; }
}

/* GIF Wrappers */
.gif-container { width: 100%; display: flex; justify-content: center; overflow: hidden; }
.gif-container img { width: 100%; height: auto; object-fit: contain; }

.gif-container.rounded { 
    background: var(--white); 
    border-radius: var(--radius-lg); 
    aspect-ratio: 1; 
    max-width: 220px; 
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.gif-container.rounded-xl {
    background: var(--white);
    border-radius: 2rem;
    padding: 2rem;
    aspect-ratio: 1;
    max-width: 280px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-container.shadow-lg { box-shadow: var(--shadow-lg); }

.gif-container.transparent {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Growth Section */
.growth { 
    padding: 6rem 0; 
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.growth-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.growth-text h2 { margin-bottom: 1.5rem; color: var(--black); font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.growth-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; }
.growth-image { display: flex; justify-content: center; }
.growth-image .gif-container { max-width: 280px; transition: transform 0.5s ease; }
.growth-image .gif-container:hover { transform: scale(1.02); }

/* Security Section */
.security { 
    padding: 6rem 0; 
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}

.security-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.security-text h2 { margin-bottom: 1.5rem; color: var(--black); font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.security-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; }
.security-image { display: flex; justify-content: center; }
.security-image .gif-container { max-width: 280px; transition: transform 0.5s ease; }
.security-image .gif-container:hover { transform: scale(1.02); }

/* Analytics Section */
.analytics { 
    padding: 6rem 0; 
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.analytics-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.analytics-text h2 { margin-bottom: 1.5rem; color: var(--black); font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.analytics-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; }
.analytics-image { display: flex; justify-content: center; }
.analytics-image .gif-container { max-width: 280px; transition: transform 0.5s ease; }
.analytics-image .gif-container:hover { transform: scale(1.02); }

/* Responsive for all sections */
@media (max-width: 992px) {
    .growth-grid, .security-grid, .analytics-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem;
    }
    .growth-image, .security-image, .analytics-image { 
        order: -1; 
        margin-bottom: 2rem;
    }
    .growth-text, .security-text, .analytics-text { order: 1; }
    .growth-text p, .security-text p, .analytics-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hosting */
.hosting { 
    background: var(--black); 
    color: var(--white); 
    padding: 6rem 0; 
    border-radius: 3rem 3rem 0 0; 
    margin-top: 3rem;
    position: relative;
}

.hosting-header-main { text-align: center; margin-bottom: 4rem; }
.hosting-header-main h2 { margin-bottom: 1rem; }
.hosting-header-main p { font-size: 1.1rem; color: rgba(255,255,255,0.7); font-weight: 500; }

.hosting-intro { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }

.hosting-item { 
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.hosting-text-item p { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

.hosting-item .gif-container {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.hosting-item .gif-container img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 992px) {
    .hosting-item {
        flex-direction: column;
        text-align: center;
    }
    .hosting-item .gif-container {
        order: -1;
        margin-bottom: 1.5rem;
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }
}

/* Stats */
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
@media (max-width: 992px) { .stats { justify-content: center; } }
.stat-val { display: block; font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.6rem; letter-spacing: 0.2em; opacity: 0.5; font-weight: 900; }

/* Pricing Cards */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
}

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.card {
    background: var(--white); color: var(--black);
    padding: 2.5rem 1.5rem; border-radius: 2rem;
    border: 2px solid var(--gray-border);
    position: relative; 
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card.popular { border-color: var(--primary); }
@media (min-width: 1025px) { .card.popular { transform: scale(1.03); z-index: 10; } }

.popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; text-align: center; }
.card .subtitle { font-size: 0.55rem; color: var(--primary); font-weight: 900; text-align: center; margin-bottom: 2rem; text-transform: uppercase; }
.card ul { list-style: none; margin-bottom: 2.5rem; }
.card li { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.7rem; font-weight: 600; font-size: 0.8rem; }
.card li i { color: var(--primary); margin-top: 2px; shrink: 0; width: 12px; }

/* Apps */
.apps { padding: 6rem 0; border-radius: 3rem 3rem 0 0; background: var(--white); margin-top: -2.5rem; position: relative; z-index: 10; box-shadow: 0 -15px 30px rgba(0,0,0,0.04); }
.apps-header { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.apps-header .gif-container { max-width: 189px; }

@media (max-width: 992px) {
    .apps-header { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .apps-header .gif-container { order: -1; margin-bottom: 2rem; }
}

.divider { width: 5rem; height: 0.4rem; background: var(--primary); border-radius: 1rem; margin-top: 1.5rem; }
@media (max-width: 992px) { .divider { margin-left: auto; margin-right: auto; } }

/* Apps Intro */
.apps-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.app-item .gif-container {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.app-item .gif-container img { width: 100%; height: 100%; object-fit: contain; }
.app-text h3 { margin-bottom: 1rem; color: var(--black); }
.app-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 992px) {
    .app-item {
        flex-direction: column;
        text-align: center;
    }
    .app-item .gif-container {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

/* Tabs */
.tabs-container { width: 100%; }
.tabs-list {
    background: #f1f3f5; padding: 0.3rem;
    border-radius: 1.2rem; display: flex;
    overflow-x: auto; scrollbar-width: none;
    max-width: 750px; margin: 0 auto 3rem;
    border: 1px solid var(--gray-border);
}
.tabs-list::-webkit-scrollbar { display: none; }

.tab-trigger {
    flex: 1; min-width: 100px;
    padding: 0.9rem; border: none;
    background: none; font-weight: 700;
    cursor: pointer; border-radius: 0.9rem;
    transition: all 0.3s; white-space: nowrap;
    font-size: 0.95rem;
}
.tab-trigger.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.6s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-intro { text-align: center; max-width: 750px; margin: 0 auto 3rem; }
.tab-intro h3 { margin-bottom: 1rem; }
.tab-intro p { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* Mobile tabs - 2x2 grid */
@media (max-width: 640px) {
    .tabs-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
        padding: 0.5rem;
    }
    
    .tab-trigger {
        min-width: auto;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* About & Contact */
.about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-grid .gif-container { order: -1; margin-bottom: 2rem; }
}

.quote { font-size: 1.3rem; font-weight: 800; font-style: italic; color: #1D7A7A; margin-bottom: 1.5rem; line-height: 1.4; }

.contact { padding: 6rem 0; background: #fff; border-top: 1px solid #f8f9fa; text-align: center; }
.contact-grid { max-width: 800px; margin: 0 auto; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 3rem 0; }
.info-card { padding: 2rem; border: 2px solid var(--gray-border); border-radius: 1.5rem; text-align: center; }
.info-card i { color: var(--primary); margin-bottom: 1rem; }
.info-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 1.1rem; font-weight: 700; color: #000; }

.cta-box { background: var(--primary); color: var(--white); padding: 3rem; border-radius: 2.5rem; text-align: center; }
.cta-box h3 { margin-bottom: 1rem; font-size: 1.8rem; }
.cta-box p { margin-bottom: 0; font-weight: 500; opacity: 0.9; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--gray-border); padding: 5rem 0 2.5rem; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.footer-brand img { height: 40px; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; font-size: 0.65rem; letter-spacing: 0.12em; font-weight: 900; color: #000; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; font-weight: 600; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { margin-top: 4rem; text-align: center; padding-top: 2rem; border-top: 1px solid var(--gray-border); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-back-to-top);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
}