/* ==================== OSNOVNE VARIJABLE I RESET ==================== */ :root { --primary-color: #d4381f; --secondary-color: #333333; --light-color: #f5f5f5; --white: #ffffff; --text-dark: #222222; --text-light: #666666; --border-color: #e0e0e0; --transition: all 0.3s ease; --container-width: 1200px; --container-padding: 20px; } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--white); } /* ==================== CONTAINER I ZAJEDNIČKI ELEMENTI ==================== */ .container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); } h1, h2, h3, h4, h5, h6 { font-weight: 600; margin-bottom: 20px; } h2 { font-size: 2.5rem; color: var(--primary-color); text-transform: uppercase; text-align: center; margin-bottom: 50px; } h3 { font-size: 1.5rem; color: var(--secondary-color); } p { margin-bottom: 15px; color: var(--text-light); line-height: 1.8; } a { color: var(--primary-color); text-decoration: none; transition: var(--transition); } a:hover { color: darken(var(--primary-color), 10%); } /* ==================== DUGMIĆI ==================== */ .btn { display: inline-block; padding: 12px 30px; border: none; border-radius: 5px; font-size: 1rem; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: var(--transition); text-decoration: none; } .btn-primary { background-color: var(--primary-color); color: var(--white); } .btn-primary:hover { background-color: #b8290f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 56, 31, 0.3); } .btn-secondary { background-color: var(--secondary-color); color: var(--white); } .btn-secondary:hover { background-color: #1a1a1a; transform: translateY(-2px); } /* ==================== HEADER I NAVIGACIJA ==================== */ .header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .header-container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); display: flex; justify-content: space-between; align-items: center; height: 70px; } .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--secondary-color); } .logo img { height: 40px; width: auto; } .navbar { display: flex; } .nav-links { display: flex; list-style: none; gap: 30px; } .nav-link { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; position: relative; transition: var(--transition); } .nav-link:hover { color: var(--primary-color); } .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; } .nav-link:hover::after { width: 100%; } .menu-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; gap: 5px; } .menu-toggle span { width: 25px; height: 3px; background-color: var(--secondary-color); border-radius: 2px; transition: var(--transition); } .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); } .menu-toggle.active span:nth-child(2) { opacity: 0; } .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); } /* ==================== HERO SEKCIJA ==================== */ .hero { background: linear-gradient(135deg, var(--primary-color) 0%, #b8290f 100%); color: var(--white); padding: 100px var(--container-padding); text-align: center; min-height: 500px; display: flex; align-items: center; justify-content: center; background-image: url(assets/images/back.jpg); background-repeat: no-repeat; background-size: cover; } .hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; } .hero-content p { font-size: 1.3rem; margin-bottom: 40px; color: rgba(255, 255, 255, 0.95); max-width: 700px; margin-left: auto; margin-right: auto; } /* ==================== SEKCIJA USLUGA ==================== */ .usluge { padding: 80px var(--container-padding); background-color: var(--light-color); } .usluge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; } .usluga-card { background-color: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: var(--transition); } .usluga-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); } .usluga-image { overflow: hidden; height: 250px; background-color: var(--border-color); } .usluga-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .usluga-card:hover .usluga-image img { transform: scale(1.05); } .usluga-content { padding: 25px; } .usluga-content h3 { color: var(--primary-color); text-transform: uppercase; margin-bottom: 15px; font-size: 1.3rem; } .usluga-content p { font-size: 0.95rem; line-height: 1.7; } /* ==================== SEKCIJA REFERENCI ==================== */ .reference { padding: 80px var(--container-padding); background-color: var(--white); } .reference-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; } .gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: var(--transition); } .gallery-item:hover img { transform: scale(1.1); filter: brightness(1.1); } .gallery-item::after { content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; opacity: 0; transition: var(--transition); } .gallery-item:hover::after { opacity: 1; } /* ==================== LIGHTBOX ==================== */ .lightbox { display: none; position: fixed; z-index: 1000; padding: 20px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); opacity: 0; animation: fadeIn 0.3s ease; } .lightbox.active { display: flex; align-items: center; justify-content: center; opacity: 1; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .lightbox-img { max-width: 90%; max-height: 80vh; object-fit: contain; animation: zoomIn 0.3s ease; } @keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } } .lightbox-close { position: absolute; top: 20px; right: 35px; color: var(--white); font-size: 40px; font-weight: bold; cursor: pointer; transition: var(--transition); } .lightbox-close:hover { color: var(--primary-color); } .lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 30px; padding: 10px 15px; cursor: pointer; background-color: rgba(0, 0, 0, 0.5); border-radius: 5px; transition: var(--transition); user-select: none; } .lightbox-prev:hover, .lightbox-next:hover { background-color: var(--primary-color); } .lightbox-prev { left: 20px; } .lightbox-next { right: 20px; } /* ==================== SEKCIJA O NAMA ==================== */ .onama { padding: 80px var(--container-padding); background-color: var(--light-color); } .onama-content h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 30px; } .onama-content p { font-size: 1rem; max-width: 800px; } /* ==================== SEKCIJA DVORCI - MODELI ==================== */ .dvorci-section { padding: 80px var(--container-padding); background-color: var(--white); } .dvorac-card { background-color: var(--light-color); border-radius: 10px; padding: 40px; margin-bottom: 60px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); transition: var(--transition); } .dvorac-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); transform: translateY(-3px); } .model-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 3px solid var(--primary-color); } .model-header h2 { font-size: 2rem; color: var(--primary-color); text-transform: uppercase; margin: 0; } .model-number { background-color: var(--primary-color); color: var(--white); padding: 8px 16px; border-radius: 25px; font-size: 0.85rem; font-weight: 600; } .specifications { background-color: var(--white); padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--primary-color); } .specifications p { margin-bottom: 10px; font-size: 0.95rem; color: var(--text-dark); } .specifications strong { color: var(--primary-color); font-weight: 600; } .model-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; } .gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; display: block; background-color: var(--border-color); } .gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); display: block; } .gallery-item:hover img { transform: scale(1.1); filter: brightness(1.15); } .gallery-item::after { content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.5rem; opacity: 0; transition: var(--transition); z-index: 10; } .gallery-item:hover::after { opacity: 1; } /* ==================== SEKCIJA DVORCI ==================== */ padding: 80px var(--container-padding); background: linear-gradient(135deg, rgba(212, 56, 31, 0.1) 0%, rgba(51, 51, 51, 0.1) 100%); text-align: center; } .dvorci-info { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-light); } .dvorci-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; } /* ==================== SEKCIJA KONTAKT ==================== */ .kontakt { padding: 80px var(--container-padding); background-color: var(--white); } .kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; } .kontakt-info h3 { color: var(--primary-color); margin-bottom: 30px; } .kontakt-info p { margin-bottom: 15px; font-size: 1rem; } .kontakt-info a { color: var(--primary-color); font-weight: 600; } /* ==================== FORMA ==================== */ .forma { background-color: var(--light-color); padding: 30px; border-radius: 8px; } .form-group { margin-bottom: 20px; } .forma input, .forma textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-family: inherit; font-size: 1rem; transition: var(--transition); } .forma input:focus, .forma textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(212, 56, 31, 0.1); } /* ==================== FOOTER ==================== */ .footer { background-color: var(--secondary-color); color: var(--white); padding: 40px var(--container-padding); text-align: center; } .footer p { margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); } /* ==================== LAZY LOADING ANIMACIJA ==================== */ img[loading="lazy"] { background: linear-gradient(90deg, var(--border-color) 25%, rgba(255, 255, 255, 0.1) 50%, var(--border-color) 75%); background-size: 200% 100%; animation: loading 2s infinite; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } img[loading="lazy"].loaded { animation: none; background: none; } /* ==================== MEDIA UPITI ==================== */ @media (max-width: 768px) { :root { --container-width: 100%; --container-padding: 15px; } .header-container { height: 60px; } .menu-toggle { display: flex; } .navbar { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; z-index: 99; } .navbar.active { display: flex; } .nav-links { flex-direction: column; gap: 15px; } .nav-link::after { display: none; } .hero-content h1 { font-size: 2.5rem; } .hero-content p { font-size: 1.1rem; } .hero { padding: 60px var(--container-padding); min-height: 400px; } h2 { font-size: 2rem; margin-bottom: 30px; } h3 { font-size: 1.2rem; } .usluge-grid { grid-template-columns: 1fr; } .kontakt-grid { grid-template-columns: 1fr; gap: 30px; } .dvorci-buttons { flex-direction: column; } .dvorci-buttons .btn { width: 100%; text-align: center; } .reference-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .model-header { flex-direction: column; align-items: flex-start; gap: 15px; } .model-header h2 { font-size: 1.5rem; } .model-gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; } .gallery-item img { height: 150px; } .dvorac-card { padding: 25px; margin-bottom: 40px; } .usluge, .reference, .onama, .kontakt, .dvorci-sekcija, .dvorci-section { padding: 50px var(--container-padding); } .lightbox-prev, .lightbox-next { font-size: 20px; padding: 8px 12px; } .lightbox-close { font-size: 30px; top: 10px; right: 15px; } } @media (max-width: 480px) { .logo span { display: none; } .logo img { height: 40px; } .hero-content h1 { font-size: 1.8rem; } .hero-content p { font-size: 1rem; } .nav-links { gap: 10px; } .usluga-image { height: 200px; } .nav-link { font-size: 0.85rem; } .btn { padding: 10px 20px; font-size: 0.9rem; } .forma { padding: 20px; } .kontakt-info p { font-size: 0.9rem; } .model-header { flex-direction: column; } .model-header h2 { font-size: 1.3rem; } .model-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery-item img { height: 120px; } .dvorac-card { padding: 15px; margin-bottom: 30px; } .specifications { padding: 15px; } .specifications p { font-size: 0.85rem; } } /* ==================== UTILITY KLASE ==================== */ .fade-in { animation: fadeInUp 0.6s ease; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Pristupačnost */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }