* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #00d4ff;
    --accent-purple: #7b2ff7;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-top: 10px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent-blue);
}

.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.products-section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.products-container::-webkit-scrollbar {
    height: 8px;
}

.products-container::-webkit-scrollbar-track {
    background: transparent;
}

.products-container::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.product-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-container {
    width: 100%;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--card-bg);
}

.product-3d-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
}

.product-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.product-color-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.product-card:hover .product-color-image {
    transform: scale(1.25);
}

.black-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.white-gradient {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #0066cc 0%, #003d7a 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #cc0000 0%, #7a0000 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #00cc66 0%, #007a3d 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, #7b2ff7 0%, #4a1a94 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #ff6600 0%, #cc3300 100%);
}

.pink-gradient {
    background: linear-gradient(135deg, #ff3366 0%, #cc0033 100%);
}

.documentation-gradient {
    background: linear-gradient(135deg, #7b2ff7 0%, #4a1a94 100%);
}

.doc-icon {
    font-size: 5rem;
    opacity: 0.8;
}

.phone-mockup {
    width: 180px;
    height: 360px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.color-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.product-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.buy-button {
    background: var(--gradient-3);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.buy-button:active {
    transform: translateY(0);
}

.scroll-indicator {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.about-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.about-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.team-info, .project-info {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-info h3, .project-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.member-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    border-color: var(--accent-purple);
}

.team-member h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.galaksija-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(123, 47, 247, 0.1);
    border-left: 3px solid var(--accent-purple);
    border-radius: 8px;
    color: var(--text-primary);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.page-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.page-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.model-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.model-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    padding: 2rem;
}

.model-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.model-modal-close:hover {
    color: var(--accent-blue);
}

.model-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .products-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 1rem;
        gap: 1.5rem;
    }

    .product-card {
        width: 100%;
    }

    .hero {
        padding: 2rem 1rem 1rem;
    }

    .about-section {
        padding: 3rem 1rem;
    }

    .about-container {
        padding: 2rem 1.5rem;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .page-container {
        padding: 2rem 1rem;
    }

    .page-content {
        padding: 2rem 1.5rem;
    }
}
