/* Reset and Variables */
:root {
    --bg-color: #0d0f12;
    --surface-color: #161a1f;
    --surface-hover: #1e242a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a6b1;
    --accent-color: #e31c23; /* Logo Red */
    --accent-red: #e31c23;
    --accent-blue: #2a4898; /* Logo Blue */
    --accent-glow: rgba(227, 28, 35, 0.4);
    --gold-color: #d4af37;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-color);
}

/* Base Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #b31015);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
}

.brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links li a {
    color: #1a1d20;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}
.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #1a1d20;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 15, 18, 0.4), rgba(13, 15, 18, 0.95));
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #fff, #f5d061);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 8rem 5%;
    background: var(--bg-color);
}
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}
.features-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}
.about-image-container {
    flex: 1;
    position: relative;
    height: 400px;
}
.about-image-accent {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 28, 35, 0.1), transparent);
    border: 1px solid rgba(227, 28, 35, 0.3);
    border-radius: 8px;
    position: relative;
}
.about-image-accent::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    z-index: -1;
}

/* Products Section */
.products {
    padding: 6rem 5%;
    background: var(--surface-color);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}
.product-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-slow);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(227, 28, 35, 0.3);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-color);
    color: #111;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 1.5rem;
}
.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.product-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    height: 45px;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}
.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}
.add-btn {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.add-btn i {
    margin-right: 5px;
    color: var(--accent-color);
}
.add-btn:hover {
    color: var(--accent-color);
}

.view-all {
    text-align: center;
}

/* Footer */
.footer {
    background: #080a0c;
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}
.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-brand span {
    color: var(--accent-color);
}
.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: var(--text-secondary);
}
.social-links a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.footer-links ul li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.newsletter-form {
    display: flex;
}
.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.newsletter-form button {
    padding: 0 1.5rem;
    background: var(--accent-color);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    transition: var(--transition-fast);
}
.newsletter-form button:hover {
    background: #b31015;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.izvorasoft-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.izvorasoft-logo {
    height: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}
.izvorasoft-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 1.5px;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.izvorasoft-link:hover .izvorasoft-logo {
    transform: scale(1.1);
    opacity: 1;
}
.izvorasoft-link:hover .izvorasoft-text {
    color: var(--accent-red);
    transform: scale(1.1);
}

/* Animations Tools */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: var(--surface-color);
        width: 100%;
        height: max-content;
        min-height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: left 0.4s ease;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin-bottom: 2rem;
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        color: var(--text-primary);
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    .nav-actions .btn-outline {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .about {
        padding: 4rem 5%;
    }
    .products {
        padding: 4rem 5%;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}
