@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
        
        body {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #1f2937;
            background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
        }

html {
    scroll-padding-top: 20px;
}

section[id] {
    scroll-margin-top: 20px;
}

        * {
            box-sizing: border-box;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .header {
            background: rgba(18, 42, 86);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
        }
		
		.logo-wrapper {
			flex-shrink: 0;
			margin-right: 1rem;
		}
		
		.logo img {
			height: 65px; /* veći logo */
			display: block;
		}
		
        .logo {
            font-size: 2rem;
            font-weight: 800;
            color: #3b82f6;
            text-decoration: none;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 500;
			line-height: 1.2;
			padding: 0.25rem 0;
            transition: color 0.3s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .nav-links a:hover {
            color: #f59e0b;
        }
		
		.nav-links .dropdown-trigger {
			cursor: pointer;
		}

		/* Dropdown meni */
		.nav-links .dropdown {
			position: relative;
		}

		.nav-links .dropdown-menu {
			position: absolute;
			top: 100%;
			left: 0;
			background-color: rgba(0, 0, 0, 0.9);
			list-style: none;
			padding: 0.5rem 0;
			margin: 0;
			display: none;
			flex-direction: column;
			min-width: 180px;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
			border-radius: 4px;
			z-index: 1001;
		}

		.nav-links .dropdown-menu li a {
			padding: 0.5rem 1rem;
			display: block;
			color: #ffffff;
			text-decoration: none;
			font-weight: 400;
			white-space: nowrap;
		}

		.nav-links .dropdown-menu li a:hover {
			background-color: #f59e0b;
			color: #000000;
		}

		/* Prikaz na hover */
		.nav-links .dropdown:hover .dropdown-menu {
			display: flex;
		}


        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #ffffff;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9)), url('../images/header-bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            padding: 120px 0 80px;
            text-align: center;
            color: white;
            min-height: 100%;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .hero p {
            font-size: 1.70rem;
            margin-bottom: 2rem;
            opacity: 0.9;
			font-weight: 650;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            background: #f59e0b;
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
        }

        .cta-button:hover {
            background: #d97706;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
        }

        /* Services Section */
        .services {
            padding: 30px 0;
            background: white;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
            color: #1f2937;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
		}

        .service-card {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 1px solid #f3f4f6;
            text-align: center;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
        }

        .service-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .service-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1f2937;
        }

        .service-card p {
            color: #6b7280;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

		.energy-section {
		  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
		  padding: 30px 0;
		}

		.mechanical-section {
		  background: white;
		  padding: 30px 0;
		}

		.energy-section .section-title,
		.mechanical-section .section-title {
		  text-align: center;
		  font-size: 2rem;
		  margin-bottom: 40px;
		  color: #333;
		}

        /* About Section */
        .about {
            padding: 80px 0;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-text h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }

        .about-text p {
            color: #4b5563;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .about-features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin-top: 2rem;
        }

        .feature-item {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .feature-item .icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .feature-item h4 {
            font-weight: 600;
            color: #1f2937;
            margin: 0;
        }

        /* Contact Section */
        .contact {
            padding: 80px 0;
            background: #1f2937;
            color: white;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .contact h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .contact p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            transition: background 0.3s ease;
        }

        .contact-item:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .contact-item .icon {
            font-size: 1.5rem;
            color: #f59e0b;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 16px;
            backdrop-filter: blur(10px);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .submit-btn {
            background: #f59e0b;
            color: white;
            padding: 0.75rem 2rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease;
            width: 100%;
        }

        .submit-btn:hover {
            background: #d97706;
        }

        /* Footer */
        .footer {
            background: #111827;
            color: white;
            padding: 2rem 0;
            text-align: center;
        }

		/* Poruka-prozor o statusu poslate poruke putem kontakt forme */
		.fade-overlay {
		  display: none;
		  position: fixed;
		  top: 50%;
		  left: 50%;
		  transform: translate(-50%, -50%);
		  background: #10b981;
		  color: white;
		  padding: 20px 30px;
		  border-radius: 8px;
		  font-size: 1.1rem;
		  font-weight: bold;
		  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
		  z-index: 9999;
		  text-align: center;
		  opacity: 0;
		  transition: opacity 0.5s ease;
		  max-width: 90%;
		  width: fit-content;
		  word-wrap: break-word;
		}

		.fade-overlay .icon {
		  font-size: 2rem;
		  display: block;
		  margin-bottom: 10px;
		}

		.fade-overlay.show {
		  display: block;
		  opacity: 1;
		}

		.fade-overlay.hide {
		  opacity: 0;
		}


        /* ===== MOBILE RESPONSIVE ===== */
		
		@media (min-width: 768px) {
			.container {
				padding-left: 2rem;
				padding-right: 2rem;
			}
			
			.about-features {
				padding-top: 180px;
			}
		}
		
@media (max-width: 768px) {
    .nav {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .nav-links {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(31, 41, 55, 0.8);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(20px);
        background-clip: padding-box;
        padding: 10px 0px;
        z-index: 999;
        opacity: 1;
        transform: translateY(0);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links li {
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        font-size: 1rem;
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        line-height: 1.2;
        transition: background 0.3s ease;
        min-height: 40px;
		margin: 2px 10px; /* DODAT MARGIN */
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* DROPDOWN TRIGGER */
    .dropdown-trigger {
        margin-bottom: 3px;
        cursor: pointer;
    }

    /* DROPDOWN KONTEJNER kada je otvoren */
    .nav-links .dropdown.open {
        padding-bottom: 5px;
    }

    /* DROPDOWN MENI */
    .nav-links .dropdown-menu {
        display: none;
        flex-direction: column;
        padding: 8px 0;
        background: rgba(0, 0, 0, 0.4);
        margin: 5px 15px 10px 15px;
        border-radius: 8px;
        position: relative;
    }

    .nav-links .dropdown.open .dropdown-menu {
        display: flex;
    }

    /* DROPDOWN LINKOVI */
    .nav-links .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 0.95rem;
        background: transparent;
        margin: 1px 10px;
        min-height: 36px;
        border-radius: 6px;
    }

    .nav-links .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    /* OSTALI STILOVI */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

/* About Section Updates */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Highlight Section */
.team-highlight {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #e74c3c;
}

.team-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.team-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-card h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.team-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0;
}

/* About Features Updates */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-item .icon {
    font-size: 2rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.feature-text {
    text-align: center;
    flex: 1; /* Ovo će osigurati da tekst zauzme preostali prostor */
}

.feature-text h4 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
}